public class PresenceServerExtension extends Extension implements CertAttrSet
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OID |
critical, extensionId, extensionValue| Constructor and 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) |
| Modifier and Type | Method and 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 the
decode 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.
|
clearValue, encode, getExtensionId, getExtensionValue, isCritical, setCritical, setExtensionId, setExtensionValue, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoStringpublic static final java.lang.String OID
public PresenceServerExtension(java.lang.Boolean critical,
java.lang.Object value)
throws java.io.IOException
java.io.IOExceptionpublic 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
java.io.IOExceptionpublic int getVersion()
public java.lang.String getStreetAddress()
public java.lang.String getTelephoneNumber()
public java.lang.String getRFC822()
public java.lang.String getID()
public java.lang.String getHostName()
public int getPortNumber()
public int getMaxUsers()
public int getServiceLevel()
public void encodeThis()
throws java.io.IOException
java.io.IOExceptionpublic void decodeThis()
throws java.io.IOException
java.io.IOExceptionpublic void decode(java.io.InputStream in)
throws java.security.cert.CertificateException,
java.io.IOException
CertAttrSetdecode in interface CertAttrSetin - the InputStream to read the encoded attribute from.java.security.cert.CertificateException - on decoding or validity errors.java.io.IOException - on other errors.public void encode(java.io.OutputStream out)
throws java.security.cert.CertificateException,
java.io.IOException
CertAttrSetdecode method.encode in interface CertAttrSetout - the OutputStream to encode the attribute to.java.security.cert.CertificateException - on encoding or validity errors.java.io.IOException - on other errors.public void set(java.lang.String name,
java.lang.Object obj)
throws java.io.IOException
set in interface CertAttrSetname - the name of the attribute (e.g. "x509.info.key")obj - the attribute object.java.io.IOException - on other errors.public java.lang.Object get(java.lang.String name)
throws java.io.IOException
get in interface CertAttrSetname - the name of the attribute to return.java.io.IOException - on other errors.public void delete(java.lang.String name)
throws java.io.IOException
delete in interface CertAttrSetname - the name of the attribute to delete.java.io.IOException - on other errors.public java.util.Enumeration<java.lang.String> getAttributeNames()
CertAttrSetgetAttributeNames in interface CertAttrSetpublic java.lang.String getName()
getName in interface CertAttrSetpublic void setName(java.lang.String name)
public java.lang.String getOID()
public void setOID(java.lang.String oid)
public static void main(java.lang.String[] args)