|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.security.validate.Credential
public class 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 | |
---|---|
Credential()
|
Method Summary | |
---|---|
AssertionWrapper |
getAssertion()
Get an AssertionWrapper to be validated |
BinarySecurity |
getBinarySecurityToken()
Get the BinarySecurityToken to be validated |
X509Certificate[] |
getCertificates()
Get an X509Certificate chain to be validated |
Principal |
getPrincipal()
Get the principal |
PublicKey |
getPublicKey()
Get a PublicKey to be validated |
byte[] |
getSecretKey()
Get a SecretKey (byte[]) to be validated |
SecurityContextToken |
getSecurityContextToken()
Get a SecurityContextToken to be validated |
Timestamp |
getTimestamp()
Get a Timestamp to be validated |
AssertionWrapper |
getTransformedToken()
Get an AssertionWrapper instance which corresponds to a Transformed Token. |
UsernameToken |
getUsernametoken()
Get a UsernameToken to be validated |
void |
setAssertion(AssertionWrapper assertion)
Set an AssertionWrapper to be validated |
void |
setBinarySecurityToken(BinarySecurity binarySecurityToken)
Set the BinarySecurityToken to be validated |
void |
setCertificates(X509Certificate[] certs)
Set an X509Certificate chain to be validated |
void |
setPrincipal(Principal principal)
Set the principal that supplies context information to the validators. |
void |
setPublicKey(PublicKey publicKey)
Set a PublicKey to be validated |
void |
setSecretKey(byte[] secretKey)
Set a SecretKey (byte[]) to be validated |
void |
setSecurityContextToken(SecurityContextToken securityContextToken)
Set a SecurityContextToken to be validated |
void |
setTimestamp(Timestamp timestamp)
Set a Timestamp to be validated |
void |
setTransformedToken(AssertionWrapper transformedToken)
Set an AssertionWrapper instance which corresponds to a Transformed Token. |
void |
setUsernametoken(UsernameToken usernametoken)
Set a UsernameToken to be validated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Credential()
Method Detail |
---|
public void setSecurityContextToken(SecurityContextToken securityContextToken)
securityContextToken
- a SecurityContextToken to be validatedpublic SecurityContextToken getSecurityContextToken()
public void setSecretKey(byte[] secretKey)
secretKey
- a SecretKey (byte) to be validatedpublic byte[] getSecretKey()
public void setPublicKey(PublicKey publicKey)
publicKey
- a PublicKey to be validatedpublic PublicKey getPublicKey()
public void setCertificates(X509Certificate[] certs)
certs
- an X509Certificate chain to be validatedpublic X509Certificate[] getCertificates()
public void setTimestamp(Timestamp timestamp)
timestamp
- a Timestamp to be validatedpublic Timestamp getTimestamp()
public void setUsernametoken(UsernameToken usernametoken)
usernametoken
- a UsernameToken to be validatedpublic UsernameToken getUsernametoken()
public void setBinarySecurityToken(BinarySecurity binarySecurityToken)
binarySecurityToken
- the BinarySecurityToken to be validatedpublic BinarySecurity getBinarySecurityToken()
public void setAssertion(AssertionWrapper assertion)
assertion
- an AssertionWrapper to be validatedpublic AssertionWrapper getAssertion()
public void setTransformedToken(AssertionWrapper transformedToken)
transformedToken
- a transformed AssertionWrapper instancepublic AssertionWrapper getTransformedToken()
public void setPrincipal(Principal principal)
principal
- the principal that supplies context information to the validatorspublic Principal getPrincipal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |