com.sun.xml.ws.security.impl.policy
Class RequestSecurityTokenTemplate

java.lang.Object
  extended by com.sun.xml.ws.policy.PolicyAssertion
      extended by com.sun.xml.ws.security.impl.policy.RequestSecurityTokenTemplate
All Implemented Interfaces:
RequestSecurityTokenTemplate, SecurityAssertionValidator

public class RequestSecurityTokenTemplate
extends com.sun.xml.ws.policy.PolicyAssertion
implements RequestSecurityTokenTemplate, SecurityAssertionValidator


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.xml.ws.security.policy.SecurityAssertionValidator
SecurityAssertionValidator.AssertionFitness
 
Constructor Summary
RequestSecurityTokenTemplate()
          Creates a new instance of RequestSecurityTokenTemplate
RequestSecurityTokenTemplate(com.sun.xml.ws.policy.sourcemodel.AssertionData name, java.util.Collection<com.sun.xml.ws.policy.PolicyAssertion> nestedAssertions, com.sun.xml.ws.policy.AssertionSet nestedAlternative)
           
 
Method Summary
 java.lang.String getAuthenticationType()
          get Authentication Type parameter if set, null otherwise
 java.lang.String getCanonicalizationAlgorithm()
          get CanonicalizationAlgorithm value if set, return default otherwise
 Claims getClaims()
           
 java.lang.String getComputedKeyAlgorithm()
          get CanonicalizationAlgorithm value if set, return default otherwise
 java.lang.String getEncryptionAlgorithm()
          get EncryptionAlgorithm value if set, return default otherwise
 boolean getEncryptionRequired()
          get Encryption value if set, return false otherwise
 java.lang.String getEncryptWith()
          Get the Encryption Algorithm to be used with the token if set, null otherwise
 int getKeySize()
          get the KeySize parameter if specified, 0 otherwise
 java.lang.String getKeyType()
          get KeyType Parameter if set, null otherwise
 java.lang.String getKeyWrapAlgorithm()
          Get the KeyWrap Algorithm used for key wrapping when STS encrypts the issued token for the relying party using an asymmetric key.
 Lifetime getLifetime()
          Get the desired LifeTime settings for the token if specified, null otherwise
 boolean getProofEncryptionRequired()
          Get the desired proofEncryption settings for the token if specified, false otherwise
 java.lang.String getRequestType()
          Get the type of request, specified as a String.
 java.lang.String getSignatureAlgorithm()
          get SignatureAlgorithm value if set, return default otherwise
 java.lang.String getSignWith()
          Get the Signature Algorithm to be used with the token if set, null otherwise
 java.lang.String getTokenType()
          Get the type of security token, specified as a String.
 java.lang.String getTrustVersion()
           
 SecurityAssertionValidator.AssertionFitness validate(boolean isServer)
          returns true if all the assertions embeeded under a SecurityPolicy assertion are valid and supported by the implementation.
 
Methods inherited from class com.sun.xml.ws.policy.PolicyAssertion
equals, getAttributes, getAttributesSet, getAttributeValue, getName, getNestedAssertionsIterator, getNestedPolicy, getParametersIterator, getValue, hashCode, hasNestedAssertions, hasNestedPolicy, hasParameters, isIgnorable, isOptional, isPrivate, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestSecurityTokenTemplate

public RequestSecurityTokenTemplate()
Creates a new instance of RequestSecurityTokenTemplate


RequestSecurityTokenTemplate

public RequestSecurityTokenTemplate(com.sun.xml.ws.policy.sourcemodel.AssertionData name,
                                    java.util.Collection<com.sun.xml.ws.policy.PolicyAssertion> nestedAssertions,
                                    com.sun.xml.ws.policy.AssertionSet nestedAlternative)
Method Detail

getTokenType

public java.lang.String getTokenType()
Description copied from interface: RequestSecurityTokenTemplate
Get the type of security token, specified as a String.

Specified by:
getTokenType in interface RequestSecurityTokenTemplate
Returns:
String

getRequestType

public java.lang.String getRequestType()
Description copied from interface: RequestSecurityTokenTemplate
Get the type of request, specified as a String. The String indicates the class of function that is requested.

Specified by:
getRequestType in interface RequestSecurityTokenTemplate
Returns:
String

getLifetime

public Lifetime getLifetime()
Description copied from interface: RequestSecurityTokenTemplate
Get the desired LifeTime settings for the token if specified, null otherwise

Specified by:
getLifetime in interface RequestSecurityTokenTemplate

getAuthenticationType

public java.lang.String getAuthenticationType()
Description copied from interface: RequestSecurityTokenTemplate
get Authentication Type parameter if set, null otherwise

Specified by:
getAuthenticationType in interface RequestSecurityTokenTemplate

getKeyType

public java.lang.String getKeyType()
Description copied from interface: RequestSecurityTokenTemplate
get KeyType Parameter if set, null otherwise

Specified by:
getKeyType in interface RequestSecurityTokenTemplate

getKeySize

public int getKeySize()
Description copied from interface: RequestSecurityTokenTemplate
get the KeySize parameter if specified, 0 otherwise

Specified by:
getKeySize in interface RequestSecurityTokenTemplate

getSignatureAlgorithm

public java.lang.String getSignatureAlgorithm()
Description copied from interface: RequestSecurityTokenTemplate
get SignatureAlgorithm value if set, return default otherwise

Specified by:
getSignatureAlgorithm in interface RequestSecurityTokenTemplate

getEncryptionAlgorithm

public java.lang.String getEncryptionAlgorithm()
Description copied from interface: RequestSecurityTokenTemplate
get EncryptionAlgorithm value if set, return default otherwise

Specified by:
getEncryptionAlgorithm in interface RequestSecurityTokenTemplate

getCanonicalizationAlgorithm

public java.lang.String getCanonicalizationAlgorithm()
Description copied from interface: RequestSecurityTokenTemplate
get CanonicalizationAlgorithm value if set, return default otherwise

Specified by:
getCanonicalizationAlgorithm in interface RequestSecurityTokenTemplate

getProofEncryptionRequired

public boolean getProofEncryptionRequired()
Description copied from interface: RequestSecurityTokenTemplate
Get the desired proofEncryption settings for the token if specified, false otherwise

Specified by:
getProofEncryptionRequired in interface RequestSecurityTokenTemplate

getComputedKeyAlgorithm

public java.lang.String getComputedKeyAlgorithm()
Description copied from interface: RequestSecurityTokenTemplate
get CanonicalizationAlgorithm value if set, return default otherwise

Specified by:
getComputedKeyAlgorithm in interface RequestSecurityTokenTemplate

getKeyWrapAlgorithm

public java.lang.String getKeyWrapAlgorithm()
Description copied from interface: RequestSecurityTokenTemplate
Get the KeyWrap Algorithm used for key wrapping when STS encrypts the issued token for the relying party using an asymmetric key.

Specified by:
getKeyWrapAlgorithm in interface RequestSecurityTokenTemplate

getEncryptionRequired

public boolean getEncryptionRequired()
Description copied from interface: RequestSecurityTokenTemplate
get Encryption value if set, return false otherwise

Specified by:
getEncryptionRequired in interface RequestSecurityTokenTemplate

getSignWith

public java.lang.String getSignWith()
Description copied from interface: RequestSecurityTokenTemplate
Get the Signature Algorithm to be used with the token if set, null otherwise

Specified by:
getSignWith in interface RequestSecurityTokenTemplate

getEncryptWith

public java.lang.String getEncryptWith()
Description copied from interface: RequestSecurityTokenTemplate
Get the Encryption Algorithm to be used with the token if set, null otherwise

Specified by:
getEncryptWith in interface RequestSecurityTokenTemplate

getClaims

public Claims getClaims()
Specified by:
getClaims in interface RequestSecurityTokenTemplate
Returns:
Claims

getTrustVersion

public java.lang.String getTrustVersion()
Specified by:
getTrustVersion in interface RequestSecurityTokenTemplate

validate

public SecurityAssertionValidator.AssertionFitness validate(boolean isServer)
Description copied from interface: SecurityAssertionValidator
returns true if all the assertions embeeded under a SecurityPolicy assertion are valid and supported by the implementation.

Specified by:
validate in interface SecurityAssertionValidator