public class UsernameToken extends com.sun.xml.ws.policy.PolicyAssertion implements UserNameToken, Cloneable, SecurityAssertionValidator
SecurityAssertionValidator.AssertionFitnessREQUIRE_DERIVED_KEYS, REQUIRE_EMBEDDED_TOKEN_REFERENCE, REQUIRE_EXTERNAL_REFERENCE, REQUIRE_EXTERNAL_URI_REFERENCE, REQUIRE_INTERNAL_REFERENCE, REQUIRE_ISSUER_SERIAL_REFERENCE, REQUIRE_KEY_IDENTIFIER_REFERENCE, REQUIRE_THUMBPRINT_REFERENCE, RSA_KEYVALUE_TOKEN, SC10_SECURITYCONTEXT_TOKEN, WSS_REL_V10_TOKEN10, WSS_REL_V10_TOKEN11, WSS_REL_V20_TOKEN10, WSS_REL_V20_TOKEN11, WSS_SAML_V10_TOKEN10, WSS_SAML_V10_TOKEN11, WSS_SAML_V11_TOKEN10, WSS_SAML_V11_TOKEN11, WSS_SAML_V20_TOKEN11, WSS_USERNAME_TOKEN_10, WSS_USERNAME_TOKEN_11, WSS10, WSS11, WSSKERBEROS_GSS_V5_AP_REQ_TOKEN11, WSSKERBEROS_V5_AP_REQ_TOKEN11, WSSX509PKCS7TOKEN10, WSSX509PKCS7TOKEN11, WSSX509PKIPATHV1TOKEN10, WSSX509PKIPATHV1TOKEN11, WSSX509V1TOKEN10, WSSX509V1TOKEN11, WSSX509V3TOKEN10, WSSX509V3TOKEN11| Constructor and Description |
|---|
UsernameToken()
Creates a new instance of UsernameToken
|
UsernameToken(com.sun.xml.ws.policy.sourcemodel.AssertionData name,
Collection<com.sun.xml.ws.policy.PolicyAssertion> nestedAssertions,
com.sun.xml.ws.policy.AssertionSet nestedAlternative) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Claims |
getClaims() |
String |
getIncludeToken() |
Issuer |
getIssuer()
returns the issuer for the Username token.
|
IssuerName |
getIssuerName() |
SecurityPolicyVersion |
getSecurityPolicyVersion() |
String |
getTokenId() |
Set |
getTokenRefernceType() |
String |
getType()
UsernameToken version
|
boolean |
hasPassword()
returns true is password needs to be used in the UsernameToken Header sent in the message.
|
boolean |
isRequireDerivedKeys() |
void |
setIncludeToken(String type) |
void |
setTokenId(String _id) |
void |
setType(String type) |
boolean |
useCreated()
returns true is Created needs to be used in the UsernameToken Header sent in the message.
|
boolean |
useHashPassword() |
boolean |
useNonce()
returns true is Nonce needs to be used in the UsernameToken Header sent in the message.
|
SecurityAssertionValidator.AssertionFitness |
validate(boolean isServer)
returns true if all the assertions embeeded under a SecurityPolicy
assertion are valid and supported by the implementation.
|
equals, getAttributes, getAttributesSet, getAttributeValue, getImplementation, getName, getNestedAssertionsIterator, getNestedPolicy, getParametersIterator, getValue, hashCode, hasNestedAssertions, hasNestedPolicy, hasParameters, isIgnorable, isOptional, isPrivate, toString, toStringpublic UsernameToken()
public UsernameToken(com.sun.xml.ws.policy.sourcemodel.AssertionData name,
Collection<com.sun.xml.ws.policy.PolicyAssertion> nestedAssertions,
com.sun.xml.ws.policy.AssertionSet nestedAlternative)
public void setType(String type)
public String getType()
UserNameTokengetType in interface UserNameTokenpublic String getTokenId()
getTokenId in interface Tokenpublic void setTokenId(String _id)
public String getIncludeToken()
getIncludeToken in interface Tokenpublic void setIncludeToken(String type)
public Issuer getIssuer()
UserNameTokengetIssuer in interface UserNameTokenpublic IssuerName getIssuerName()
getIssuerName in interface UserNameTokenpublic Claims getClaims()
getClaims in interface UserNameTokenpublic SecurityAssertionValidator.AssertionFitness validate(boolean isServer)
SecurityAssertionValidatorvalidate in interface SecurityAssertionValidatorpublic boolean hasPassword()
UserNameTokenhasPassword in interface UserNameTokenpublic boolean useHashPassword()
useHashPassword in interface UserNameTokenpublic boolean isRequireDerivedKeys()
isRequireDerivedKeys in interface UserNameTokenpublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic SecurityPolicyVersion getSecurityPolicyVersion()
getSecurityPolicyVersion in interface Tokenpublic Set getTokenRefernceType()
getTokenRefernceType in interface UserNameTokenpublic boolean useNonce()
UserNameTokenuseNonce in interface UserNameTokenpublic boolean useCreated()
UserNameTokenuseCreated in interface UserNameTokenCopyright © 2005–2018 Oracle Corporation. All rights reserved.