Project JXTA

net.jxta.impl.protocol
Class Certificate

java.lang.Object
  extended bynet.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>
 


Constructor Summary
Certificate()
           
Certificate(Element root)
           
 
Method Summary
 X509Certificate[] getCertificates()
           
 Document getDocument(MimeMediaType encodeAs)
          Creates a document out of the message.
static String getMessageType()
          returns the Message type.
protected  void initialize(Element root)
          Initializes the message from a document.
 void setCertificates(List certs)
           
 void setCertificates(X509Certificate[] certs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Certificate

public Certificate()

Certificate

public Certificate(Element root)
Method Detail

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 certs)

initialize

protected void initialize(Element root)
Initializes the message from a document.


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.

JXTA J2SE