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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public static final java.lang.String OID
public PresenceServerExtension(java.lang.Boolean critical, java.lang.Object value) throws java.io.IOException
java.io.IOException
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
java.io.IOException
public 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.IOException
public void decodeThis() throws java.io.IOException
java.io.IOException
public void decode(java.io.InputStream in) throws java.security.cert.CertificateException, java.io.IOException
CertAttrSet
decode
in interface CertAttrSet
in
- 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
CertAttrSet
decode
method.encode
in interface CertAttrSet
out
- 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 CertAttrSet
name
- 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 CertAttrSet
name
- 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 CertAttrSet
name
- the name of the attribute to delete.java.io.IOException
- on other errors.public java.util.Enumeration<java.lang.String> getAttributeNames()
CertAttrSet
getAttributeNames
in interface CertAttrSet
public java.lang.String getName()
getName
in interface CertAttrSet
public 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)