|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.wss.impl.policy.MLSPolicy
com.sun.xml.wss.impl.policy.mls.WSSPolicy
com.sun.xml.wss.impl.policy.mls.KeyBindingBase
com.sun.xml.wss.impl.policy.mls.AuthenticationTokenPolicy.UsernameTokenBinding
public static class AuthenticationTokenPolicy.UsernameTokenBinding
A policy representing a WSS UsernameToken. An instance of this class can be used as concrete feature binding for an AuthenticationTokenPolicy. Different parameters in this policy are applicable depending upon whether this policy is used to construct a wss:UsernameToken (sender side policy) or it is used to verify an incoming UsernameToken (receiver side policy). Information on applicability will be indicated where appropriate.
| Field Summary |
|---|
| Fields inherited from class com.sun.xml.wss.impl.policy.mls.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 |
| Fields inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy |
|---|
_featureBinding, _isOptional, _keyBinding, _policyIdentifier, bsp, UUID |
| Fields inherited from class com.sun.xml.wss.impl.policy.MLSPolicy |
|---|
readonly |
| Constructor Summary | |
|---|---|
AuthenticationTokenPolicy.UsernameTokenBinding()
Default Constructor |
|
AuthenticationTokenPolicy.UsernameTokenBinding(String username,
String password,
String nonce,
boolean doDigest,
String creationTime)
Constructor |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class com.sun.xml.wss.impl.policy.mls.KeyBindingBase |
|---|
getClaims, getIncludeToken, getIssuer, policyTokenWasSet, setClaims, setIncludeToken, setIssuer, setPolicyTokenFlag |
| Methods inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy |
|---|
getFeatureBinding, getKeyBinding, getPolicyIdentifier, getUUID, isBSP, isBSP, isOptional, isOptional, setFeatureBinding, setKeyBinding, setPolicyIdentifier, setUUID |
| Methods inherited from class com.sun.xml.wss.impl.policy.MLSPolicy |
|---|
isReadOnly, isReadOnly |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticationTokenPolicy.UsernameTokenBinding()
public AuthenticationTokenPolicy.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 - timestamp| Method Detail |
|---|
public 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 WSSPolicy
PolicyGenerationExceptionSignaturePolicy,
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(String algorithm)
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()
WSSPolicy
clone in class WSSPolicySignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicypublic String getType()
SecurityPolicyImplementation Note: Useful to avoid instanceof checks and String.equals checks
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||