|
||||||||||
| 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(java.lang.String keyIdentifier,
java.lang.String keyAlgorithm)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
clone operator |
boolean |
equals(WSSPolicy binding)
equality operator |
boolean |
equalsIgnoreTargets(WSSPolicy binding)
|
java.lang.String |
getKeyAlgorithm()
|
java.lang.String |
getKeyIdentifier()
|
java.security.PrivateKey |
getPrivateKey()
|
java.lang.String |
getType()
Get the type of the policy. |
void |
setKeyAlgorithm(java.lang.String keyAlgorithm)
set the KeyAlgorithm of this Private Key. |
void |
setKeyIdentifier(java.lang.String keyIdentifier)
set the keyIdentifier for the Private Key |
void |
setPrivateKey(java.security.PrivateKey privateKey)
set the private key instance |
java.lang.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(java.lang.String keyIdentifier,
java.lang.String keyAlgorithm)
keyIdentifier - identifier for the Private KeykeyAlgorithm - identified for the Key Algorithm| Method Detail |
|---|
public void setKeyIdentifier(java.lang.String keyIdentifier)
keyIdentifier - Key Identifier for the Private Keypublic java.lang.String getKeyIdentifier()
public void setKeyAlgorithm(java.lang.String keyAlgorithm)
keyAlgorithm - KeyAlgorithm of this Private Keypublic java.lang.String getKeyAlgorithm()
public void setPrivateKey(java.security.PrivateKey privateKey)
privateKey - PrivateKey for this PrivateKeyBindingpublic java.security.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 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 | |||||||||