|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.openpgp.PGPDefaultSignatureGenerator
org.bouncycastle.openpgp.PGPOnePassSignature
A one pass signature object.
Field Summary | |
protected byte |
lastb
|
protected java.io.OutputStream |
sigOut
|
protected int |
sigType
|
protected int |
version
|
Constructor Summary | |
PGPOnePassSignature(BCPGInputStream pIn)
|
Method Summary | |
protected void |
blockUpdate(byte[] block,
int off,
int len)
|
void |
encode(java.io.OutputStream outStream)
|
protected void |
getAttributesHash(PGPUserAttributeSubpacketVector userAttributes)
|
byte[] |
getEncoded()
|
byte[] |
getFingerprint()
Return the issuer key fingerprint. |
int |
getHashAlgorithm()
|
int |
getKeyAlgorithm()
|
long |
getKeyID()
Return the key-ID of the issuer signing key. |
KeyIdentifier |
getKeyIdentifier()
Return a KeyIdentifier identifying this PGPOnePassSignature . |
byte[] |
getSalt()
Return the salt used in the corresponding signature. |
int |
getSignatureType()
|
int |
getVersion()
Return the packet version. |
void |
init(PGPContentVerifierBuilderProvider verifierBuilderProvider,
PGPPublicKey pubKey)
Initialise the signature object for verification. |
boolean |
isContaining()
Return true, if the signature contains any signatures that follow. |
void |
update(byte b)
|
void |
update(byte[] b)
|
void |
update(byte[] b,
int off,
int len)
|
protected void |
updateWithIdData(int header,
byte[] idBytes)
|
protected void |
updateWithPublicKey(PGPPublicKey key)
|
boolean |
verify(PGPSignature pgpSig)
Verify the calculated signature against the passed in PGPSignature. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected byte lastb
protected java.io.OutputStream sigOut
protected int sigType
protected final int version
Constructor Detail |
public PGPOnePassSignature(BCPGInputStream pIn) throws java.io.IOException, PGPException
Method Detail |
public void init(PGPContentVerifierBuilderProvider verifierBuilderProvider, PGPPublicKey pubKey) throws PGPException
verifierBuilderProvider
- provider for a content verifier builder for the signature type of interest.pubKey
- the public key to use for verification
PGPException
- if there's an issue with creating the verifier.public boolean verify(PGPSignature pgpSig) throws PGPException
pgpSig
-
PGPException
public int getVersion()
public long getKeyID()
OnePassSignaturePacket.VERSION_6
packets, the key-ID is derived from the fingerprint.
public byte[] getFingerprint()
OnePassSignaturePacket.VERSION_6
packets.
public KeyIdentifier getKeyIdentifier()
KeyIdentifier
identifying this PGPOnePassSignature
.
public byte[] getSalt()
OnePassSignaturePacket.VERSION_6
packets.
public int getSignatureType()
public int getHashAlgorithm()
public int getKeyAlgorithm()
public boolean isContaining()
public byte[] getEncoded() throws java.io.IOException
java.io.IOException
public void encode(java.io.OutputStream outStream) throws java.io.IOException
java.io.IOException
public void update(byte b)
public void update(byte[] b)
public void update(byte[] b, int off, int len)
protected void blockUpdate(byte[] block, int off, int len)
protected void updateWithIdData(int header, byte[] idBytes)
protected void updateWithPublicKey(PGPPublicKey key) throws PGPException
PGPException
protected void getAttributesHash(PGPUserAttributeSubpacketVector userAttributes) throws PGPException
PGPException
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |