public class SymmetricKeyBinding 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 |
|---|
SymmetricKeyBinding()
Default constructor
|
SymmetricKeyBinding(String keyIdentifier,
String keyAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clone operator
|
boolean |
equals(WSSPolicy policy)
equals operator
|
boolean |
equalsIgnoreTargets(WSSPolicy binding) |
String |
getCertAlias() |
String |
getKeyAlgorithm() |
String |
getKeyIdentifier() |
SecretKey |
getSecretKey() |
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(String certAlias) |
void |
setKeyAlgorithm(String keyAlgorithm)
set the Key Algorithm of the Symmetric Key
|
void |
setKeyIdentifier(String keyIdentifier)
set the key identifier for the symmetric key
|
void |
setSecretKey(SecretKey secretKey)
Set the symmetric key
|
void |
setUseReceivedSecret(boolean useReceivedSecret) |
String |
toString() |
boolean |
usesEKSHA1KeyBinding() |
void |
usesEKSHA1KeyBinding(boolean value) |
getClaims, getIncludeToken, getIssuer, policyTokenWasSet, setClaims, setIncludeToken, setIssuer, setPolicyTokenFlaggetFeatureBinding, getKeyBinding, getPolicyIdentifier, getUUID, isBSP, isBSP, isOptional, isOptional, setFeatureBinding, setKeyBinding, setPolicyIdentifier, setUUIDisReadOnly, isReadOnlypublic void setKeyIdentifier(String keyIdentifier)
keyIdentifier - public String getKeyIdentifier()
public void setCertAlias(String certAlias)
public String getCertAlias()
public void setUseReceivedSecret(boolean useReceivedSecret)
public boolean getUseReceivedSecret()
public void setKeyAlgorithm(String keyAlgorithm)
keyAlgorithm - public String getKeyAlgorithm()
public void setSecretKey(SecretKey secretKey)
secretKey - the SecretKeypublic SecretKey getSecretKey()
public MLSPolicy newX509CertificateKeyBinding()
SignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicypublic boolean usesEKSHA1KeyBinding()
public void usesEKSHA1KeyBinding(boolean value)
public boolean equals(WSSPolicy policy)
WSSPolicyequals in class WSSPolicypolicy - the policy to be compared for equalitySignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicy,
PrivateKeyBinding,
SymmetricKeyBindingpublic boolean equalsIgnoreTargets(WSSPolicy binding)
equalsIgnoreTargets in class WSSPolicypublic Object clone()
clone 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.