net.jxta.impl.protocol
Class Certificate
java.lang.Object
net.jxta.impl.protocol.Certificate
public class Certificate
- extends Object
A lightweight container for X.509 Certificates.
*
<xs:element name="jxta:cert" type="Certificate"/>
<xs:complexType name="Certificate" type="xs:string">
<xs:element name="Issuer" type="jxta:cert" minOccurs="0" />
</xs:complexType>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Certificate
public Certificate()
Certificate
public Certificate(Element root)
getMessageType
public static String getMessageType()
- returns the Message type. This will match the XML doctype declaration.
- Returns:
- a string
getCertificates
public X509Certificate[] getCertificates()
setCertificates
public void setCertificates(X509Certificate[] certs)
setCertificates
public void setCertificates(List<X509Certificate> certs)
getDocument
public Document getDocument(MimeMediaType encodeAs)
- Creates a document out of the message.
- Parameters:
encodeAs
- The document representation format requested.
- Returns:
- the message as a document.