Class RequestSecurityTokenTemplate
java.lang.Object
com.sun.xml.ws.policy.PolicyAssertion
com.sun.xml.ws.security.impl.policy.RequestSecurityTokenTemplate
- All Implemented Interfaces:
RequestSecurityTokenTemplate,SecurityAssertionValidator
public class RequestSecurityTokenTemplate
extends PolicyAssertion
implements RequestSecurityTokenTemplate, SecurityAssertionValidator
- Author:
- K.Venugopal@sun.com Abhijit.Das@Sun.COM
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.xml.ws.security.policy.SecurityAssertionValidator
SecurityAssertionValidator.AssertionFitness -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of RequestSecurityTokenTemplateRequestSecurityTokenTemplate(AssertionData name, Collection<PolicyAssertion> nestedAssertions, AssertionSet nestedAlternative) -
Method Summary
Modifier and TypeMethodDescriptionget Authentication Type parameter if set, null otherwiseget CanonicalizationAlgorithm value if set, return default otherwiseget CanonicalizationAlgorithm value if set, return default otherwiseget EncryptionAlgorithm value if set, return default otherwisebooleanget Encryption value if set, return false otherwiseGet the Encryption Algorithm to be used with the token if set, null otherwiseintget the KeySize parameter if specified, 0 otherwiseget KeyType Parameter if set, null otherwiseGet the KeyWrap Algorithm used for key wrapping when STS encrypts the issued token for the relying party using an asymmetric key.Get the desired LifeTime settings for the token if specified, null otherwisebooleanGet the desired proofEncryption settings for the token if specified, false otherwiseGet the type of request, specified as a String.get SignatureAlgorithm value if set, return default otherwiseGet the Signature Algorithm to be used with the token if set, null otherwiseGet the type of security token, specified as a String.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, getImplementation, getName, getNestedAssertionsIterator, getNestedPolicy, getParametersIterator, getValue, hashCode, hasNestedAssertions, hasNestedPolicy, hasParameters, isIgnorable, isOptional, isPrivate, toString, toString
-
Constructor Details
-
RequestSecurityTokenTemplate
public RequestSecurityTokenTemplate()Creates a new instance of RequestSecurityTokenTemplate -
RequestSecurityTokenTemplate
public RequestSecurityTokenTemplate(AssertionData name, Collection<PolicyAssertion> nestedAssertions, AssertionSet nestedAlternative)
-
-
Method Details
-
getTokenType
Description copied from interface:RequestSecurityTokenTemplateGet the type of security token, specified as a String.- Specified by:
getTokenTypein interfaceRequestSecurityTokenTemplate- Returns:
String
-
getRequestType
Description copied from interface:RequestSecurityTokenTemplateGet the type of request, specified as a String. The String indicates the class of function that is requested.- Specified by:
getRequestTypein interfaceRequestSecurityTokenTemplate- Returns:
String
-
getLifetime
Description copied from interface:RequestSecurityTokenTemplateGet the desired LifeTime settings for the token if specified, null otherwise- Specified by:
getLifetimein interfaceRequestSecurityTokenTemplate
-
getAuthenticationType
Description copied from interface:RequestSecurityTokenTemplateget Authentication Type parameter if set, null otherwise- Specified by:
getAuthenticationTypein interfaceRequestSecurityTokenTemplate
-
getKeyType
Description copied from interface:RequestSecurityTokenTemplateget KeyType Parameter if set, null otherwise- Specified by:
getKeyTypein interfaceRequestSecurityTokenTemplate
-
getKeySize
public int getKeySize()Description copied from interface:RequestSecurityTokenTemplateget the KeySize parameter if specified, 0 otherwise- Specified by:
getKeySizein interfaceRequestSecurityTokenTemplate
-
getSignatureAlgorithm
Description copied from interface:RequestSecurityTokenTemplateget SignatureAlgorithm value if set, return default otherwise- Specified by:
getSignatureAlgorithmin interfaceRequestSecurityTokenTemplate
-
getEncryptionAlgorithm
Description copied from interface:RequestSecurityTokenTemplateget EncryptionAlgorithm value if set, return default otherwise- Specified by:
getEncryptionAlgorithmin interfaceRequestSecurityTokenTemplate
-
getCanonicalizationAlgorithm
Description copied from interface:RequestSecurityTokenTemplateget CanonicalizationAlgorithm value if set, return default otherwise- Specified by:
getCanonicalizationAlgorithmin interfaceRequestSecurityTokenTemplate
-
getProofEncryptionRequired
public boolean getProofEncryptionRequired()Description copied from interface:RequestSecurityTokenTemplateGet the desired proofEncryption settings for the token if specified, false otherwise- Specified by:
getProofEncryptionRequiredin interfaceRequestSecurityTokenTemplate
-
getComputedKeyAlgorithm
Description copied from interface:RequestSecurityTokenTemplateget CanonicalizationAlgorithm value if set, return default otherwise- Specified by:
getComputedKeyAlgorithmin interfaceRequestSecurityTokenTemplate
-
getKeyWrapAlgorithm
Description copied from interface:RequestSecurityTokenTemplateGet the KeyWrap Algorithm used for key wrapping when STS encrypts the issued token for the relying party using an asymmetric key.- Specified by:
getKeyWrapAlgorithmin interfaceRequestSecurityTokenTemplate
-
getEncryptionRequired
public boolean getEncryptionRequired()Description copied from interface:RequestSecurityTokenTemplateget Encryption value if set, return false otherwise- Specified by:
getEncryptionRequiredin interfaceRequestSecurityTokenTemplate
-
getSignWith
Description copied from interface:RequestSecurityTokenTemplateGet the Signature Algorithm to be used with the token if set, null otherwise- Specified by:
getSignWithin interfaceRequestSecurityTokenTemplate
-
getEncryptWith
Description copied from interface:RequestSecurityTokenTemplateGet the Encryption Algorithm to be used with the token if set, null otherwise- Specified by:
getEncryptWithin interfaceRequestSecurityTokenTemplate
-
getClaims
- Specified by:
getClaimsin interfaceRequestSecurityTokenTemplate- Returns:
- Claims
-
getTrustVersion
- Specified by:
getTrustVersionin interfaceRequestSecurityTokenTemplate
-
validate
Description copied from interface:SecurityAssertionValidatorreturns true if all the assertions embeeded under a SecurityPolicy assertion are valid and supported by the implementation.- Specified by:
validatein interfaceSecurityAssertionValidator
-