Class PresenceServerExtension
java.lang.Object
org.mozilla.jss.netscape.security.x509.Extension
org.mozilla.jss.netscape.security.extensions.PresenceServerExtension
- All Implemented Interfaces:
Serializable
,CertAttrSet
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private String
private String
private int
private int
private String
private int
private String
private String
private int
static final String
private static final long
Fields inherited from class org.mozilla.jss.netscape.security.x509.Extension
critical, extensionId, extensionValue
-
Constructor Summary
ConstructorsConstructorDescriptionPresenceServerExtension
(boolean critical, int version, String streetAddress, String telephoneNumber, String rfc822Name, String ID, String hostName, int portNumber, int maxUsers, int serviceLevel) PresenceServerExtension
(Boolean critical, Object value) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(InputStream in) Decodes the attribute in the input stream.void
void
Delete the attribute value.void
encode
(OutputStream out) Encodes the attribute to the output stream in a format that can be parsed by thedecode
method.void
Get the attribute value.Returns an enumeration of the names of the attributes existing within this attribute.getID()
int
getName()
Return the name of this attribute.getOID()
Return the OID of this attribute.int
int
int
static void
void
Set the attribute value.void
Set the name of this attribute.void
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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
mCritical
private boolean mCritical -
mVersion
private int mVersion -
mStreetAddress
-
mTelephoneNumber
-
mRFC822Name
-
mID
-
mHostName
-
mPortNumber
private int mPortNumber -
mMaxUsers
private int mMaxUsers -
mServiceLevel
private int mServiceLevel -
OID
- See Also:
-
-
Constructor Details
-
PresenceServerExtension
- Throws:
IOException
-
PresenceServerExtension
public PresenceServerExtension(boolean critical, int version, String streetAddress, String telephoneNumber, String rfc822Name, String ID, String hostName, int portNumber, int maxUsers, int serviceLevel) throws IOException - Throws:
IOException
-
-
Method Details
-
getVersion
public int getVersion() -
getStreetAddress
-
getTelephoneNumber
-
getRFC822
-
getID
-
getHostName
-
getPortNumber
public int getPortNumber() -
getMaxUsers
public int getMaxUsers() -
getServiceLevel
public int getServiceLevel() -
encodeThis
- Throws:
IOException
-
decodeThis
- Throws:
IOException
-
decode
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:
CertificateException
- on decoding or validity errors.IOException
- on other errors.
-
encode
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:
CertificateException
- on encoding or validity errors.IOException
- on other errors.
-
set
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:
IOException
- on other errors.
-
get
Get the attribute value.- Specified by:
get
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute to return.- Returns:
- attribute value
- Throws:
IOException
- on other errors.
-
delete
Delete the attribute value.- Specified by:
delete
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute to delete.- Throws:
IOException
- on other errors.
-
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
Return the name of this attribute.- Specified by:
getName
in interfaceCertAttrSet
- Returns:
- the name of this CertAttrSet.
-
setName
Set the name of this attribute. -
getOID
Return the OID of this attribute. -
setOID
Set the OID of this attribute. -
main
-