org.apache.ws.security.validate
Class Credential

java.lang.Object
  extended by org.apache.ws.security.validate.Credential

public class Credential
extends Object

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

Credential

public Credential()
Method Detail

setSecurityContextToken

public void setSecurityContextToken(SecurityContextToken securityContextToken)
Set a SecurityContextToken to be validated

Parameters:
securityContextToken - a SecurityContextToken to be validated

getSecurityContextToken

public SecurityContextToken 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

public void setPublicKey(PublicKey publicKey)
Set a PublicKey to be validated

Parameters:
publicKey - a PublicKey to be validated

getPublicKey

public PublicKey getPublicKey()
Get a PublicKey to be validated

Returns:
a PublicKey to be validated

setCertificates

public void setCertificates(X509Certificate[] certs)
Set an X509Certificate chain to be validated

Parameters:
certs - an X509Certificate chain to be validated

getCertificates

public X509Certificate[] getCertificates()
Get an X509Certificate chain to be validated

Returns:
an X509Certificate chain to be validated

setTimestamp

public void setTimestamp(Timestamp timestamp)
Set a Timestamp to be validated

Parameters:
timestamp - a Timestamp to be validated

getTimestamp

public Timestamp getTimestamp()
Get a Timestamp to be validated

Returns:
a Timestamp to be validated

setUsernametoken

public void setUsernametoken(UsernameToken usernametoken)
Set a UsernameToken to be validated

Parameters:
usernametoken - a UsernameToken to be validated

getUsernametoken

public UsernameToken getUsernametoken()
Get a UsernameToken to be validated

Returns:
a UsernameToken to be validated

setBinarySecurityToken

public void setBinarySecurityToken(BinarySecurity binarySecurityToken)
Set the BinarySecurityToken to be validated

Parameters:
binarySecurityToken - the BinarySecurityToken to be validated

getBinarySecurityToken

public BinarySecurity getBinarySecurityToken()
Get the BinarySecurityToken to be validated

Returns:
the BinarySecurityToken to be validated

setAssertion

public void setAssertion(AssertionWrapper assertion)
Set an AssertionWrapper to be validated

Parameters:
assertion - an AssertionWrapper to be validated

getAssertion

public AssertionWrapper getAssertion()
Get an AssertionWrapper to be validated

Returns:
an AssertionWrapper to be validated

setTransformedToken

public void setTransformedToken(AssertionWrapper transformedToken)
Set an AssertionWrapper instance which corresponds to a Transformed Token.

Parameters:
transformedToken - a transformed AssertionWrapper instance

getTransformedToken

public AssertionWrapper getTransformedToken()
Get an AssertionWrapper instance which corresponds to a Transformed Token.

Returns:
a transformed AssertionWrapper instance

setPrincipal

public void setPrincipal(Principal principal)
Set the principal that supplies context information to the validators.

Parameters:
principal - the principal that supplies context information to the validators

getPrincipal

public Principal getPrincipal()
Get the principal

Returns:
the principal


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.