public static class AuthenticationTokenPolicy.UsernameTokenBinding extends KeyBindingBase
claims, claimsDialect, INCLUDE_ALWAYS, INCLUDE_ALWAYS_TO_RECIPIENT, INCLUDE_ALWAYS_TO_RECIPIENT_VER2, INCLUDE_ALWAYS_VER2, INCLUDE_NEVER, INCLUDE_NEVER_VER2, INCLUDE_ONCE, INCLUDE_ONCE_VER2, includeToken, issuer, policyToken_featureBinding, _isOptional, _keyBinding, _policyIdentifier, bsp, UUID| Constructor and Description |
|---|
UsernameTokenBinding()
Default Constructor
|
UsernameTokenBinding(String username,
String password,
String nonce,
boolean doDigest,
String creationTime)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
clone operatror
|
boolean |
equals(WSSPolicy policy)
Equals operator
|
boolean |
equalsIgnoreTargets(WSSPolicy policy) |
boolean |
getDigestOn() |
String |
getKeyAlgorithm() |
long |
getMaxNonceAge() |
String |
getNonce()
get the nonce
|
String |
getPassword()
get the password
|
String |
getReferenceType() |
SecretKey |
getSecretKey() |
SecretKey |
getSecretKey(String algorithm) |
String |
getSTRID() |
String |
getType()
Get the type of the policy.
|
boolean |
getUseCreated() |
boolean |
getUseNonce()
get the useNonce flag
|
String |
getUsername()
get the username
|
UsernameToken |
getUsernameToken() |
boolean |
hasNoPassword() |
boolean |
isEndorsing() |
void |
isEndorsing(boolean flag) |
MLSPolicy |
newTimestampFeatureBinding()
Create and set the FeatureBinding for this WSSPolicy to a TimestampPolicy * @return a new TimestampPolicy as a FeatureBinding for this WSSPolicy
|
void |
setDigestOn(boolean doDigest)
setter for a boolean flag indicating whether the password should be
digested while constructing a wss:UsernameToken from this Policy
|
void |
setKeyAlgorithm(String keyAlgorithm) |
void |
setMaxNonceAge(long nonceAge)
set the maximum age in Milliseconds for which a receiving entity should
cache the nonce associated with this policy.
|
void |
setNonce(String nonce)
set the nonce
|
void |
setNoPassword(boolean value) |
void |
setPassword(String password)
set the password
|
void |
setReferenceType(String referenceType) |
void |
setSecretKey(byte[] secretKey) |
void |
setSecretKey(SecretKey secretKey) |
void |
setSTRID(String id) |
void |
setUseCreated(boolean useCreated) |
void |
setUseNonce(boolean useNonce)
setter for a boolean flag indicating whether a nonce should be
while constructing a wss:UsernameToken from this Policy
|
void |
setUsername(String username)
set the username
|
void |
setUsernameToken(UsernameToken token) |
void |
setValueType(String valueType) |
String |
toString() |
getClaims, getIncludeToken, getIssuer, policyTokenWasSet, setClaims, setIncludeToken, setIssuer, setPolicyTokenFlaggetFeatureBinding, getKeyBinding, getPolicyIdentifier, getUUID, isBSP, isBSP, isOptional, isOptional, setFeatureBinding, setKeyBinding, setPolicyIdentifier, setUUIDisReadOnly, isReadOnlypublic UsernameTokenBinding()
public UsernameTokenBinding(String username, String password, String nonce, boolean doDigest, String creationTime)
username - username to be sentpassword - password to be sentnonce - noncedoDigest - if password should be digestedcreationTime - timestamppublic String getReferenceType()
public UsernameToken getUsernameToken()
public void isEndorsing(boolean flag)
public boolean isEndorsing()
public void setUsernameToken(UsernameToken token)
public void setReferenceType(String referenceType)
public MLSPolicy newTimestampFeatureBinding() throws PolicyGenerationException
PolicyGenerationException, - if TimestampPolicy is not a valid FeatureBinding for this WSSPolicyPolicyGenerationExceptionSignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicypublic void setUsername(String username)
username - public void setPassword(String password)
password - public void setNonce(String nonce)
nonce - public void setUseNonce(boolean useNonce)
useNonce - public void setUseCreated(boolean useCreated)
public void setDigestOn(boolean doDigest)
doDigest - public void setMaxNonceAge(long nonceAge)
nonceAge - public String getUsername()
public String getPassword()
public String getNonce()
public boolean getUseNonce()
public boolean getUseCreated()
public boolean getDigestOn()
public long getMaxNonceAge()
public boolean hasNoPassword()
public void setNoPassword(boolean value)
public void setSTRID(String id)
public String getSTRID()
public void setValueType(String valueType)
public void setKeyAlgorithm(String keyAlgorithm)
public String getKeyAlgorithm()
public void setSecretKey(SecretKey secretKey)
public void setSecretKey(byte[] secretKey)
public SecretKey getSecretKey()
public boolean equals(WSSPolicy policy)
equals in class WSSPolicySignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicy,
PrivateKeyBinding,
SymmetricKeyBindingpublic boolean equalsIgnoreTargets(WSSPolicy policy)
equalsIgnoreTargets in class WSSPolicypublic Object clone()
WSSPolicyclone in class WSSPolicySignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicypublic String getType()
SecurityPolicyImplementation Note: Useful to avoid instanceof checks and String.equals checks
Copyright © 2005–2018 Oracle Corporation. All rights reserved.