Class PresenceServerExtension

    • Constructor Detail

      • PresenceServerExtension

        public PresenceServerExtension​(java.lang.Boolean critical,
                                       java.lang.Object value)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • PresenceServerExtension

        public PresenceServerExtension​(boolean critical,
                                       int version,
                                       java.lang.String streetAddress,
                                       java.lang.String telephoneNumber,
                                       java.lang.String rfc822Name,
                                       java.lang.String ID,
                                       java.lang.String hostName,
                                       int portNumber,
                                       int maxUsers,
                                       int serviceLevel)
                                throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getVersion

        public int getVersion()
      • getStreetAddress

        public java.lang.String getStreetAddress()
      • getTelephoneNumber

        public java.lang.String getTelephoneNumber()
      • getRFC822

        public java.lang.String getRFC822()
      • getID

        public java.lang.String getID()
      • getHostName

        public java.lang.String getHostName()
      • getPortNumber

        public int getPortNumber()
      • getMaxUsers

        public int getMaxUsers()
      • getServiceLevel

        public int getServiceLevel()
      • encodeThis

        public void encodeThis()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • decodeThis

        public void decodeThis()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • decode

        public void decode​(java.io.InputStream in)
                    throws java.security.cert.CertificateException,
                           java.io.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:
        java.security.cert.CertificateException - on decoding or validity errors.
        java.io.IOException - on other errors.
      • encode

        public void encode​(java.io.OutputStream out)
                    throws java.security.cert.CertificateException,
                           java.io.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:
        java.security.cert.CertificateException - on encoding or validity errors.
        java.io.IOException - on other errors.
      • set

        public void set​(java.lang.String name,
                        java.lang.Object obj)
                 throws java.io.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:
        java.io.IOException - on other errors.
      • get

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

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

        public java.util.Enumeration<java.lang.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 java.lang.String getName()
        Return the name of this attribute.
        Specified by:
        getName in interface CertAttrSet
        Returns:
        the name of this CertAttrSet.
      • setName

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

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

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

        public static void main​(java.lang.String[] args)