Schnittstelle Signatory
- Alle bekannten Implementierungsklassen:
PgpSignatory,SignatorySupport
public interface Signatory
A signatory is an object capable of providing a signature for an arbitrary stream of bytes.
- Seit:
- 4.5
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetKeyId()Returns the id of the key that will be used for signing.getName()An identifying name for this signatory.byte[]sign(InputStream toSign) ExhauststoSign, and returns the raw signature bytes.voidsign(InputStream toSign, OutputStream destination) ExhauststoSign, and writes the signature tosignatureDestination.
-
Methodendetails
-
getName
An identifying name for this signatory.
The name must be constant for the life of the signatory and should uniquely identify it within a project.
-
sign
ExhauststoSign, and writes the signature tosignatureDestination. The caller is responsible for closing the streams, though the output WILL be flushed.- Parameter:
toSign- The source of the data to be signeddestination- Where the signature will be written to
-
sign
ExhauststoSign, and returns the raw signature bytes.- Parameter:
toSign- The source of the data to be signed- Gibt zurück:
- The raw bytes of the signature
-
getKeyId
Returns the id of the key that will be used for signing.- Gibt zurück:
- The key id
-