Class PresenceServerExtension

java.lang.Object
org.mozilla.jss.netscape.security.x509.Extension
org.mozilla.jss.netscape.security.extensions.PresenceServerExtension
All Implemented Interfaces:
Serializable, CertAttrSet

public class PresenceServerExtension extends Extension implements CertAttrSet
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • mCritical

      private boolean mCritical
    • mVersion

      private int mVersion
    • mStreetAddress

      private String mStreetAddress
    • mTelephoneNumber

      private String mTelephoneNumber
    • mRFC822Name

      private String mRFC822Name
    • mID

      private String mID
    • mHostName

      private String mHostName
    • mPortNumber

      private int mPortNumber
    • mMaxUsers

      private int mMaxUsers
    • mServiceLevel

      private int mServiceLevel
    • OID

      public static final String OID
      See Also:
  • Constructor Details

  • Method Details

    • getVersion

      public int getVersion()
    • getStreetAddress

      public String getStreetAddress()
    • getTelephoneNumber

      public String getTelephoneNumber()
    • getRFC822

      public String getRFC822()
    • getID

      public String getID()
    • getHostName

      public String getHostName()
    • getPortNumber

      public int getPortNumber()
    • getMaxUsers

      public int getMaxUsers()
    • getServiceLevel

      public int getServiceLevel()
    • encodeThis

      public void encodeThis() throws IOException
      Throws:
      IOException
    • decodeThis

      public void decodeThis() throws IOException
      Throws:
      IOException
    • decode

      public void decode(InputStream in) throws CertificateException, IOException
      Description copied from interface: CertAttrSet
      Decodes the attribute in the input stream.
      Specified by:
      decode in interface CertAttrSet
      Parameters:
      in - the InputStream to read the encoded attribute from.
      Throws:
      CertificateException - on decoding or validity errors.
      IOException - on other errors.
    • encode

      public void encode(OutputStream out) throws CertificateException, IOException
      Description copied from interface: CertAttrSet
      Encodes the attribute to the output stream in a format that can be parsed by the decode method.
      Specified by:
      encode in interface CertAttrSet
      Parameters:
      out - the OutputStream to encode the attribute to.
      Throws:
      CertificateException - on encoding or validity errors.
      IOException - on other errors.
    • set

      public void set(String name, Object obj) throws IOException
      Set the attribute value.
      Specified by:
      set in interface CertAttrSet
      Parameters:
      name - the name of the attribute (e.g. "x509.info.key")
      obj - the attribute object.
      Throws:
      IOException - on other errors.
    • get

      public Object get(String name) throws IOException
      Get the attribute value.
      Specified by:
      get in interface CertAttrSet
      Parameters:
      name - the name of the attribute to return.
      Returns:
      attribute value
      Throws:
      IOException - on other errors.
    • delete

      public void delete(String name) throws IOException
      Delete the attribute value.
      Specified by:
      delete in interface CertAttrSet
      Parameters:
      name - the name of the attribute to delete.
      Throws:
      IOException - on other errors.
    • getAttributeNames

      public Enumeration<String> getAttributeNames()
      Description copied from interface: CertAttrSet
      Returns an enumeration of the names of the attributes existing within this attribute.
      Specified by:
      getAttributeNames in interface CertAttrSet
      Returns:
      an enumeration of the attribute names.
    • getName

      public String getName()
      Return the name of this attribute.
      Specified by:
      getName in interface CertAttrSet
      Returns:
      the name of this CertAttrSet.
    • setName

      public void setName(String name)
      Set the name of this attribute.
    • getOID

      public String getOID()
      Return the OID of this attribute.
    • setOID

      public void setOID(String oid)
      Set the OID of this attribute.
    • main

      public static void main(String[] args)