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
Constructors Constructor Description RequestSecurityTokenTemplate()Creates a new instance of RequestSecurityTokenTemplateRequestSecurityTokenTemplate(AssertionData name, Collection<PolicyAssertion> nestedAssertions, AssertionSet nestedAlternative)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthenticationType()get Authentication Type parameter if set, null otherwiseStringgetCanonicalizationAlgorithm()get CanonicalizationAlgorithm value if set, return default otherwiseClaimsgetClaims()StringgetComputedKeyAlgorithm()get CanonicalizationAlgorithm value if set, return default otherwiseStringgetEncryptionAlgorithm()get EncryptionAlgorithm value if set, return default otherwisebooleangetEncryptionRequired()get Encryption value if set, return false otherwiseStringgetEncryptWith()Get the Encryption Algorithm to be used with the token if set, null otherwiseintgetKeySize()get the KeySize parameter if specified, 0 otherwiseStringgetKeyType()get KeyType Parameter if set, null otherwiseStringgetKeyWrapAlgorithm()Get the KeyWrap Algorithm used for key wrapping when STS encrypts the issued token for the relying party using an asymmetric key.LifetimegetLifetime()Get the desired LifeTime settings for the token if specified, null otherwisebooleangetProofEncryptionRequired()Get the desired proofEncryption settings for the token if specified, false otherwiseStringgetRequestType()Get the type of request, specified as a String.StringgetSignatureAlgorithm()get SignatureAlgorithm value if set, return default otherwiseStringgetSignWith()Get the Signature Algorithm to be used with the token if set, null otherwiseStringgetTokenType()Get the type of security token, specified as a String.StringgetTrustVersion()SecurityAssertionValidator.AssertionFitnessvalidate(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 Detail
-
RequestSecurityTokenTemplate
public RequestSecurityTokenTemplate()
Creates a new instance of RequestSecurityTokenTemplate
-
RequestSecurityTokenTemplate
public RequestSecurityTokenTemplate(AssertionData name, Collection<PolicyAssertion> nestedAssertions, AssertionSet nestedAlternative)
-
-
Method Detail
-
getTokenType
public String getTokenType()
Description copied from interface:RequestSecurityTokenTemplateGet the type of security token, specified as a String.- Specified by:
getTokenTypein interfaceRequestSecurityTokenTemplate- Returns:
String
-
getRequestType
public 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
public Lifetime getLifetime()
Description copied from interface:RequestSecurityTokenTemplateGet the desired LifeTime settings for the token if specified, null otherwise- Specified by:
getLifetimein interfaceRequestSecurityTokenTemplate
-
getAuthenticationType
public String getAuthenticationType()
Description copied from interface:RequestSecurityTokenTemplateget Authentication Type parameter if set, null otherwise- Specified by:
getAuthenticationTypein interfaceRequestSecurityTokenTemplate
-
getKeyType
public String 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
public String getSignatureAlgorithm()
Description copied from interface:RequestSecurityTokenTemplateget SignatureAlgorithm value if set, return default otherwise- Specified by:
getSignatureAlgorithmin interfaceRequestSecurityTokenTemplate
-
getEncryptionAlgorithm
public String getEncryptionAlgorithm()
Description copied from interface:RequestSecurityTokenTemplateget EncryptionAlgorithm value if set, return default otherwise- Specified by:
getEncryptionAlgorithmin interfaceRequestSecurityTokenTemplate
-
getCanonicalizationAlgorithm
public String 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
public String getComputedKeyAlgorithm()
Description copied from interface:RequestSecurityTokenTemplateget CanonicalizationAlgorithm value if set, return default otherwise- Specified by:
getComputedKeyAlgorithmin interfaceRequestSecurityTokenTemplate
-
getKeyWrapAlgorithm
public String 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
public String getSignWith()
Description copied from interface:RequestSecurityTokenTemplateGet the Signature Algorithm to be used with the token if set, null otherwise- Specified by:
getSignWithin interfaceRequestSecurityTokenTemplate
-
getEncryptWith
public String getEncryptWith()
Description copied from interface:RequestSecurityTokenTemplateGet the Encryption Algorithm to be used with the token if set, null otherwise- Specified by:
getEncryptWithin interfaceRequestSecurityTokenTemplate
-
getClaims
public Claims getClaims()
- Specified by:
getClaimsin interfaceRequestSecurityTokenTemplate- Returns:
- Claims
-
getTrustVersion
public String getTrustVersion()
- Specified by:
getTrustVersionin interfaceRequestSecurityTokenTemplate
-
validate
public SecurityAssertionValidator.AssertionFitness validate(boolean isServer)
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
-
-