Class Overview
This class provides a binding between a Signature object and an
authenticated X.500 name (from an X.509 certificate chain), which
is needed in many public key signing applications.
The name of the signer is important, both because knowing it is the
whole point of the signature, and because the associated X.509 certificate
is always used to verify the signature.
The X.509 certificate chain is temporarily not associated with
the signer, but this omission will be resolved.
Summary
Public Methods |
AlgorithmId
|
getAlgorithmId()
Returns the algorithm used to sign.
|
X500Name
|
getSigner()
Returns the name of the signing agent.
|
byte[]
|
sign()
Produces the signature for the data processed by update().
|
void
|
update(byte[] buf, int offset, int len)
Called for each chunk of the data being signed.
|
[Expand]
Inherited Methods |
From class
java.security.Signer
|
From class
java.security.Identity
|
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
java.security.Principal
abstract
boolean
|
equals(Object another)
Compares this principal to the specified object.
|
abstract
String
|
getName()
Returns the name of this principal.
|
abstract
int
|
hashCode()
Returns a hashcode for this principal.
|
abstract
String
|
toString()
Returns a string representation of this principal.
|
|
Public Constructors
Public Methods
public
AlgorithmId
getAlgorithmId
()
Returns the algorithm used to sign.
public
X500Name
getSigner
()
Returns the name of the signing agent.
public
byte[]
sign
()
Produces the signature for the data processed by update().
public
void
update
(byte[] buf, int offset, int len)
Called for each chunk of the data being signed. That
is, you can present the data in many chunks, so that
it doesn't need to be in a single sequential buffer.
Parameters
buf
| buffer holding the next chunk of the data to be signed |
offset
| starting point of to-be-signed data |
len
| how many bytes of data are to be signed |