|
||||||||||
| 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.SymmetricKeyBinding
public class SymmetricKeyBinding
A policy representing a SymmetricKey that can be used as the KeyBinding for a SignaturePolicy or an EncryptionPolicy.
| 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 | |
|---|---|
SymmetricKeyBinding()
Default constructor |
|
SymmetricKeyBinding(java.lang.String keyIdentifier,
java.lang.String keyAlgorithm)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone operator |
boolean |
equals(WSSPolicy policy)
equals operator |
boolean |
equalsIgnoreTargets(WSSPolicy binding)
|
java.lang.String |
getCertAlias()
|
java.lang.String |
getKeyAlgorithm()
|
java.lang.String |
getKeyIdentifier()
|
javax.crypto.SecretKey |
getSecretKey()
|
java.lang.String |
getType()
Get the type of the policy. |
boolean |
getUseReceivedSecret()
|
MLSPolicy |
newX509CertificateKeyBinding()
Create and set the KeyBinding for this WSSPolicy to an X509CertificateBinding |
void |
setCertAlias(java.lang.String certAlias)
|
void |
setKeyAlgorithm(java.lang.String keyAlgorithm)
set the Key Algorithm of the Symmetric Key |
void |
setKeyIdentifier(java.lang.String keyIdentifier)
set the key identifier for the symmetric key |
void |
setSecretKey(javax.crypto.SecretKey secretKey)
Set the symmetric key |
void |
setUseReceivedSecret(boolean useReceivedSecret)
|
java.lang.String |
toString()
|
boolean |
usesEKSHA1KeyBinding()
|
void |
usesEKSHA1KeyBinding(boolean value)
|
| 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 SymmetricKeyBinding()
public SymmetricKeyBinding(java.lang.String keyIdentifier,
java.lang.String keyAlgorithm)
keyIdentifier - identifier for KeykeyAlgorithm - Key Algorithm| Method Detail |
|---|
public void setKeyIdentifier(java.lang.String keyIdentifier)
keyIdentifier - public java.lang.String getKeyIdentifier()
public void setCertAlias(java.lang.String certAlias)
public java.lang.String getCertAlias()
public void setUseReceivedSecret(boolean useReceivedSecret)
public boolean getUseReceivedSecret()
public void setKeyAlgorithm(java.lang.String keyAlgorithm)
keyAlgorithm - public java.lang.String getKeyAlgorithm()
public void setSecretKey(javax.crypto.SecretKey secretKey)
secretKey - the SecretKeypublic javax.crypto.SecretKey getSecretKey()
public MLSPolicy newX509CertificateKeyBinding()
SignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicypublic boolean usesEKSHA1KeyBinding()
public void usesEKSHA1KeyBinding(boolean value)
public boolean equals(WSSPolicy policy)
WSSPolicy
equals in class WSSPolicypolicy - the policy to be compared for equality
SignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicy,
PrivateKeyBinding,
SymmetricKeyBindingpublic boolean equalsIgnoreTargets(WSSPolicy binding)
equalsIgnoreTargets in class WSSPolicypublic java.lang.Object clone()
clone in class WSSPolicySignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicypublic java.lang.String getType()
SecurityPolicyImplementation Note: Useful to avoid instanceof checks and String.equals checks
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||