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.String
OID
-
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 void
decode(java.io.InputStream in)
Decodes the attribute in the input stream.void
decodeThis()
void
delete(java.lang.String name)
Delete the attribute value.void
encode(java.io.OutputStream out)
Encodes the attribute to the output stream in a format that can be parsed by thedecode
method.void
encodeThis()
java.lang.Object
get(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.String
getHostName()
java.lang.String
getID()
int
getMaxUsers()
java.lang.String
getName()
Return the name of this attribute.java.lang.String
getOID()
Return the OID of this attribute.int
getPortNumber()
java.lang.String
getRFC822()
int
getServiceLevel()
java.lang.String
getStreetAddress()
java.lang.String
getTelephoneNumber()
int
getVersion()
static void
main(java.lang.String[] args)
void
set(java.lang.String name, java.lang.Object obj)
Set the attribute value.void
setName(java.lang.String name)
Set the name of this attribute.void
setOID(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.IOException
Description copied from interface:CertAttrSet
Decodes the attribute in the input stream.- Specified by:
decode
in 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.IOException
Description copied from interface:CertAttrSet
Encodes the attribute to the output stream in a format that can be parsed by thedecode
method.- Specified by:
encode
in 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.IOException
Set the attribute value.- Specified by:
set
in 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.IOException
Get the attribute value.- Specified by:
get
in 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.IOException
Delete the attribute value.- Specified by:
delete
in 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:CertAttrSet
Returns an enumeration of the names of the attributes existing within this attribute.- Specified by:
getAttributeNames
in interfaceCertAttrSet
- Returns:
- an enumeration of the attribute names.
-
getName
public java.lang.String getName()
Return the name of this attribute.- Specified by:
getName
in 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)
-
-