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 booleanprivate Stringprivate Stringprivate intprivate intprivate Stringprivate intprivate Stringprivate Stringprivate intstatic final Stringprivate static final longFields 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 TypeMethodDescriptionvoiddecode(InputStream in) Decodes the attribute in the input stream.voidvoidDelete the attribute value.voidencode(OutputStream out) Encodes the attribute to the output stream in a format that can be parsed by thedecodemethod.voidGet the attribute value.Returns an enumeration of the names of the attributes existing within this attribute.getID()intgetName()Return the name of this attribute.getOID()Return the OID of this attribute.intintintstatic voidvoidSet the attribute value.voidSet the name of this attribute.voidSet the OID of this attribute.Methods inherited from class org.mozilla.jss.netscape.security.x509.Extension
clearValue, encode, getExtensionId, getExtensionValue, isCritical, setCritical, setExtensionId, setExtensionValue, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:CertAttrSetDecodes the attribute in the input stream.- Specified by:
decodein 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: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:
CertificateException- on encoding or validity errors.IOException- on other errors.
-
set
Set the attribute value.- Specified by:
setin 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:
getin 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:
deletein interfaceCertAttrSet- Parameters:
name- the name of the attribute to delete.- Throws:
IOException- on other errors.
-
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
Return the name of this attribute.- Specified by:
getNamein 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
-