|
|||||||||
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.
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, 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 AlgorithmMethod 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 WSSPolicy
binding
- the Policy to be checked for equality
SignaturePolicy
,
EncryptionPolicy
,
AuthenticationTokenPolicy
,
PrivateKeyBinding
,
SymmetricKeyBinding
public boolean equalsIgnoreTargets(WSSPolicy binding)
equalsIgnoreTargets
in class WSSPolicy
public java.lang.Object clone()
clone
in class WSSPolicy
SignaturePolicy
,
EncryptionPolicy
,
AuthenticationTokenPolicy
public java.lang.String getType()
SecurityPolicy
Implementation 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 |