Class PresenceServerExtension
- java.lang.Object
-
- org.mozilla.jss.netscape.security.x509.Extension
-
- org.mozilla.jss.netscape.security.extensions.PresenceServerExtension
-
- All Implemented Interfaces:
java.io.Serializable,CertAttrSet
public class PresenceServerExtension extends Extension implements CertAttrSet
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOID-
Fields inherited from class org.mozilla.jss.netscape.security.x509.Extension
critical, extensionId, extensionValue
-
-
Constructor Summary
Constructors Constructor Description 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)PresenceServerExtension(java.lang.Boolean critical, java.lang.Object value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(java.io.InputStream in)Decodes the attribute in the input stream.voiddecodeThis()voiddelete(java.lang.String name)Delete the attribute value.voidencode(java.io.OutputStream out)Encodes the attribute to the output stream in a format that can be parsed by thedecodemethod.voidencodeThis()java.lang.Objectget(java.lang.String name)Get the attribute value.java.util.Enumeration<java.lang.String>getAttributeNames()Returns an enumeration of the names of the attributes existing within this attribute.java.lang.StringgetHostName()java.lang.StringgetID()intgetMaxUsers()java.lang.StringgetName()Return the name of this attribute.java.lang.StringgetOID()Return the OID of this attribute.intgetPortNumber()java.lang.StringgetRFC822()intgetServiceLevel()java.lang.StringgetStreetAddress()java.lang.StringgetTelephoneNumber()intgetVersion()static voidmain(java.lang.String[] args)voidset(java.lang.String name, java.lang.Object obj)Set the attribute value.voidsetName(java.lang.String name)Set the name of this attribute.voidsetOID(java.lang.String oid)Set the OID of this attribute.-
Methods inherited from class org.mozilla.jss.netscape.security.x509.Extension
clearValue, encode, getExtensionId, getExtensionValue, isCritical, setCritical, setExtensionId, setExtensionValue, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.mozilla.jss.netscape.security.x509.CertAttrSet
toString
-
-
-
-
Field Detail
-
OID
public static final java.lang.String OID
- See Also:
- Constant Field Values
-
-
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.IOExceptionDescription copied from interface:CertAttrSetDecodes the attribute in the input stream.- Specified by:
decodein interfaceCertAttrSet- 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.IOExceptionDescription copied from interface:CertAttrSetEncodes the attribute to the output stream in a format that can be parsed by thedecodemethod.- Specified by:
encodein interfaceCertAttrSet- 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.IOExceptionSet the attribute value.- Specified by:
setin interfaceCertAttrSet- 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.IOExceptionGet the attribute value.- Specified by:
getin interfaceCertAttrSet- 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.IOExceptionDelete the attribute value.- Specified by:
deletein interfaceCertAttrSet- 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:CertAttrSetReturns an enumeration of the names of the attributes existing within this attribute.- Specified by:
getAttributeNamesin interfaceCertAttrSet- Returns:
- an enumeration of the attribute names.
-
getName
public java.lang.String getName()
Return the name of this attribute.- Specified by:
getNamein interfaceCertAttrSet- 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)
-
-