|
||||||||||
| 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.PrivateKeyBinding
public class PrivateKeyBinding
Objects of this class act as KeyBindings for AuthenticationTokens such as AuthenticationTokenPolicy.X509CertificateBinding and AuthenticationTokenPolicy.SAMLAssertionBinding. When associated with an AuthenticationToken they represent the PrivateKey associated with the AuthenticationToken.
| Field Summary |
|---|
| 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 | |
|---|---|
PrivateKeyBinding()
Default constructor |
|
PrivateKeyBinding(String keyIdentifier,
String keyAlgorithm)
Constructor |
|
| Method Summary | |
|---|---|
Object |
clone()
clone operator |
boolean |
equals(WSSPolicy binding)
equality operator |
boolean |
equalsIgnoreTargets(WSSPolicy binding)
|
String |
getKeyAlgorithm()
|
String |
getKeyIdentifier()
|
PrivateKey |
getPrivateKey()
|
String |
getType()
Get the type of the policy. |
void |
setKeyAlgorithm(String keyAlgorithm)
set the KeyAlgorithm of this Private Key. |
void |
setKeyIdentifier(String keyIdentifier)
set the keyIdentifier for the Private Key |
void |
setPrivateKey(PrivateKey privateKey)
set the private key instance |
String |
toString()
|
| 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 PrivateKeyBinding()
public PrivateKeyBinding(String keyIdentifier,
String keyAlgorithm)
keyIdentifier - identifier for the Private KeykeyAlgorithm - identified for the Key Algorithm| Method Detail |
|---|
public void setKeyIdentifier(String keyIdentifier)
keyIdentifier - Key Identifier for the Private Keypublic String getKeyIdentifier()
public void setKeyAlgorithm(String keyAlgorithm)
keyAlgorithm - KeyAlgorithm of this Private Keypublic String getKeyAlgorithm()
public void setPrivateKey(PrivateKey privateKey)
privateKey - PrivateKey for this PrivateKeyBindingpublic PrivateKey getPrivateKey()
public boolean equals(WSSPolicy binding)
equals in class WSSPolicybinding - the Policy to be checked for equality
SignaturePolicy,
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
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||