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 classKeyInfoBean.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 booleanequals(Object o)Method equals ...KeyInfoBean.CERT_IDENTIFIERgetCertIdentifer()Method getCertIdentifer returns the cert identifer of this KeyInfoBean object.X509CertificategetCertificate()Method getCertificate returns the certificate of this KeyInfoBean object.ElementgetElement()Method getElement returns the DOM Element of this KeyInfoBean object.byte[]getEphemeralKey()PublicKeygetPublicKey()Method getPublicKey returns the public key of this KeyInfoBean object.inthashCode()voidsetCertIdentifer(KeyInfoBean.CERT_IDENTIFIER certIdentifier)Method setCertIdentifer sets the cert identifier of this KeyInfoBean object.voidsetCertificate(X509Certificate cert)Method setCertificate sets the cert of this KeyInfoBean object.voidsetElement(Element keyInfoElement)Method setElement sets the DOM Element of this KeyInfoBean object.voidsetEphemeralKey(byte[] ephemeralKey)voidsetPublicKey(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 ...
-
-