Class KeyInfoBean
- java.lang.Object
-
- org.apache.wss4j.common.saml.bean.KeyInfoBean
-
public class KeyInfoBean extends Object
Class KeyInfoBean represents a KeyInfo structure that will be embedded in a SAML Subject.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeyInfoBean.CERT_IDENTIFIER
-
Constructor Summary
Constructors Constructor Description KeyInfoBean()
Constructor KeyInfoBean creates a new KeyInfoBean instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Method equals ...KeyInfoBean.CERT_IDENTIFIER
getCertIdentifer()
Method getCertIdentifer returns the cert identifer of this KeyInfoBean object.X509Certificate
getCertificate()
Method getCertificate returns the certificate of this KeyInfoBean object.Element
getElement()
Method getElement returns the DOM Element of this KeyInfoBean object.byte[]
getEphemeralKey()
PublicKey
getPublicKey()
Method getPublicKey returns the public key of this KeyInfoBean object.int
hashCode()
void
setCertIdentifer(KeyInfoBean.CERT_IDENTIFIER certIdentifier)
Method setCertIdentifer sets the cert identifier of this KeyInfoBean object.void
setCertificate(X509Certificate cert)
Method setCertificate sets the cert of this KeyInfoBean object.void
setElement(Element keyInfoElement)
Method setElement sets the DOM Element of this KeyInfoBean object.void
setEphemeralKey(byte[] ephemeralKey)
void
setPublicKey(PublicKey publicKey)
Method setPublicKey sets the publicKey of this KeyInfoBean object.
-
-
-
Method Detail
-
getCertificate
public X509Certificate getCertificate()
Method getCertificate returns the certificate of this KeyInfoBean object.- Returns:
- the cert (type X509Certificate) of this KeyInfoBean object.
-
setCertificate
public void setCertificate(X509Certificate cert)
Method setCertificate sets the cert of this KeyInfoBean object.- Parameters:
cert
- the cert of this KeyInfoBean object.
-
getPublicKey
public PublicKey getPublicKey()
Method getPublicKey returns the public key of this KeyInfoBean object.- Returns:
- the publicKey (type PublicKey) of this KeyInfoBean object.
-
setPublicKey
public void setPublicKey(PublicKey publicKey)
Method setPublicKey sets the publicKey of this KeyInfoBean object.- Parameters:
publicKey
- the publicKey of this KeyInfoBean object.
-
getCertIdentifer
public KeyInfoBean.CERT_IDENTIFIER getCertIdentifer()
Method getCertIdentifer returns the cert identifer of this KeyInfoBean object.- Returns:
- the certIdentifier (type CERT_IDENTIFIER) of this KeyInfoBean object.
-
setCertIdentifer
public void setCertIdentifer(KeyInfoBean.CERT_IDENTIFIER certIdentifier)
Method setCertIdentifer sets the cert identifier of this KeyInfoBean object.- Parameters:
certIdentifier
- the certIdentifier of this KeyInfoBean object.
-
getEphemeralKey
public byte[] getEphemeralKey()
-
setEphemeralKey
public void setEphemeralKey(byte[] ephemeralKey)
-
getElement
public Element getElement()
Method getElement returns the DOM Element of this KeyInfoBean object.- Returns:
- the keyInfoElement (type Element) of this KeyInfoBean object.
-
setElement
public void setElement(Element keyInfoElement)
Method setElement sets the DOM Element of this KeyInfoBean object.- Parameters:
keyInfoElement
- the DOM Element of this KeyInfoBean object.
-
equals
public boolean equals(Object o)
Method equals ...
-
-