Package org.apache.wss4j.dom.validate
Class Credential
java.lang.Object
org.apache.wss4j.dom.validate.Credential
This class stores various Credential types that can be validated and/or returned by a
Validator implementation. It also stores an optional Principal object which can provide
context information to the validators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the BinarySecurityToken to be validatedGet an X509Certificate chain to be validatedGet the principalGet a PublicKey to be validatedGet an SamlAssertionWrapper to be validatedbyte[]Get a SecretKey (byte[]) to be validatedGet a SecurityContextToken to be validatedGet the subject that may result from the Validation processGet a Timestamp to be validatedGet an SamlAssertionWrapper instance which corresponds to a Transformed Token.Get a UsernameToken to be validatedvoidsetBinarySecurityToken(BinarySecurity binarySecurityToken) Set the BinarySecurityToken to be validatedvoidsetCertificates(X509Certificate[] certs) Set an X509Certificate chain to be validatedvoidsetDelegationCredential(Object delegationCredential) voidsetPrincipal(Principal principal) Set the principal that supplies context information to the validators.voidsetPublicKey(PublicKey publicKey) Set a PublicKey to be validatedvoidsetSamlAssertion(SamlAssertionWrapper samlAssertion) Set an SamlAssertionWrapper to be validatedvoidsetSecretKey(byte[] secretKey) Set a SecretKey (byte[]) to be validatedvoidsetSecurityContextToken(SecurityContextToken securityContextToken) Set a SecurityContextToken to be validatedvoidsetSubject(Subject subject) Set the subject that may result from the Validation processvoidsetTimestamp(Timestamp timestamp) Set a Timestamp to be validatedvoidsetTransformedToken(SamlAssertionWrapper transformedToken) Set an SamlAssertionWrapper instance which corresponds to a Transformed Token.voidsetUsernametoken(UsernameToken usernametoken) Set a UsernameToken to be validated
-
Constructor Details
-
Credential
public Credential()
-
-
Method Details
-
setSecurityContextToken
Set a SecurityContextToken to be validated- Parameters:
securityContextToken- a SecurityContextToken to be validated
-
getSecurityContextToken
Get a SecurityContextToken to be validated- Returns:
- a SecurityContextToken to be validated
-
setSecretKey
public void setSecretKey(byte[] secretKey) Set a SecretKey (byte[]) to be validated- Parameters:
secretKey- a SecretKey (byte) to be validated
-
getSecretKey
public byte[] getSecretKey()Get a SecretKey (byte[]) to be validated- Returns:
- a SecretKey (byte[]) to be validated
-
setPublicKey
Set a PublicKey to be validated- Parameters:
publicKey- a PublicKey to be validated
-
getPublicKey
Get a PublicKey to be validated- Returns:
- a PublicKey to be validated
-
setCertificates
Set an X509Certificate chain to be validated- Parameters:
certs- an X509Certificate chain to be validated
-
getCertificates
Get an X509Certificate chain to be validated- Returns:
- an X509Certificate chain to be validated
-
setTimestamp
Set a Timestamp to be validated- Parameters:
timestamp- a Timestamp to be validated
-
getTimestamp
Get a Timestamp to be validated- Returns:
- a Timestamp to be validated
-
setUsernametoken
Set a UsernameToken to be validated- Parameters:
usernametoken- a UsernameToken to be validated
-
getUsernametoken
Get a UsernameToken to be validated- Returns:
- a UsernameToken to be validated
-
setBinarySecurityToken
Set the BinarySecurityToken to be validated- Parameters:
binarySecurityToken- the BinarySecurityToken to be validated
-
getBinarySecurityToken
Get the BinarySecurityToken to be validated- Returns:
- the BinarySecurityToken to be validated
-
setSamlAssertion
Set an SamlAssertionWrapper to be validated- Parameters:
samlAssertion- an SamlAssertionWrapper to be validated
-
getSamlAssertion
Get an SamlAssertionWrapper to be validated- Returns:
- an SamlAssertionWrapper to be validated
-
setTransformedToken
Set an SamlAssertionWrapper instance which corresponds to a Transformed Token.- Parameters:
transformedToken- a transformed SamlAssertionWrapper instance
-
getTransformedToken
Get an SamlAssertionWrapper instance which corresponds to a Transformed Token.- Returns:
- a transformed SamlAssertionWrapper instance
-
setPrincipal
Set the principal that supplies context information to the validators.- Parameters:
principal- the principal that supplies context information to the validators
-
getPrincipal
Get the principal- Returns:
- the principal
-
setSubject
Set the subject that may result from the Validation process- Parameters:
subject- the subject that may result from the Validation process
-
getSubject
Get the subject that may result from the Validation process- Returns:
- the subject that may result from the Validation process
-
getDelegationCredential
-
setDelegationCredential
-