Class Overview
This class defines the SerialNumber attribute for the Certificate.
Summary
Constants |
String |
IDENT |
Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type. |
String |
NAME |
Sub attributes name for this CertAttrSet. |
String |
NUMBER |
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
sun.security.x509.CertAttrSet
abstract
void
|
delete(String name)
Deletes an attribute value from this CertAttrSet.
|
abstract
void
|
encode(OutputStream out)
Encodes the attribute to the output stream in a format
that can be parsed by the decode method.
|
abstract
Object
|
get(String name)
Gets an attribute value for this CertAttrSet.
|
abstract
Enumeration<T>
|
getElements()
Returns an enumeration of the names of the attributes existing within
this attribute.
|
abstract
String
|
getName()
Returns the name (identifier) of this CertAttrSet.
|
abstract
void
|
set(String name, Object obj)
Sets an attribute value within this CertAttrSet.
|
abstract
String
|
toString()
Returns a short string describing this certificate attribute.
|
|
Constants
public
static
final
String
IDENT
Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
Constant Value:
"x509.info.serialNumber"
public
static
final
String
NAME
Sub attributes name for this CertAttrSet.
Constant Value:
"serialNumber"
public
static
final
String
NUMBER
Public Constructors
public
CertificateSerialNumber
(BigInteger num)
Default constructor for the certificate attribute.
public
CertificateSerialNumber
(int num)
Default constructor for the certificate attribute.
public
CertificateSerialNumber
(DerInputStream in)
Create the object, decoding the values from the passed DER stream.
Parameters
in
| the DerInputStream to read the serial number from. |
public
CertificateSerialNumber
(InputStream in)
Create the object, decoding the values from the passed stream.
Parameters
in
| the InputStream to read the serial number from. |
public
CertificateSerialNumber
(DerValue val)
Create the object, decoding the values from the passed DerValue.
Parameters
val
| the DER encoded value. |
Public Methods
public
void
delete
(String name)
Delete the attribute value.
Parameters
name
| the name of the attribute to delete. |
public
void
encode
(OutputStream out)
Encode the serial number in DER form to the stream.
Parameters
out
| the DerOutputStream to marshal the contents to. |
Parameters
name
| the name of the attribute to return. |
Return an enumeration of names of attributes existing within this
attribute.
Returns
- an enumeration of the attribute names.
public
String
getName
()
Return the name of this attribute.
Returns
- the name of this CertAttrSet.
public
void
set
(String name, Object obj)
Parameters
name
| the name of the attribute (e.g. "x509.info.key") |
obj
| the attribute object. |
public
String
toString
()
Return the serial number as user readable string.
Returns
- a string representation of the object.