|
Bouncy Castle Cryptography Library 1.45 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.openpgp.PGPSignatureSubpacketGenerator
public class PGPSignatureSubpacketGenerator
Generator for signature subpackets.
Constructor Summary | |
---|---|
PGPSignatureSubpacketGenerator()
|
Method Summary | |
---|---|
PGPSignatureSubpacketVector |
generate()
|
void |
setEmbeddedSignature(boolean isCritical,
PGPSignature pgpSignature)
|
void |
setExportable(boolean isCritical,
boolean isExportable)
|
void |
setKeyExpirationTime(boolean isCritical,
long seconds)
Set the number of seconds a key is valid for after the time of its creation. |
void |
setKeyFlags(boolean isCritical,
int flags)
|
void |
setNotationData(boolean isCritical,
boolean isHumanReadable,
java.lang.String notationName,
java.lang.String notationValue)
|
void |
setPreferredCompressionAlgorithms(boolean isCritical,
int[] algorithms)
|
void |
setPreferredHashAlgorithms(boolean isCritical,
int[] algorithms)
|
void |
setPreferredSymmetricAlgorithms(boolean isCritical,
int[] algorithms)
|
void |
setPrimaryUserID(boolean isCritical,
boolean isPrimaryUserID)
|
void |
setRevocable(boolean isCritical,
boolean isRevocable)
|
void |
setSignatureCreationTime(boolean isCritical,
java.util.Date date)
Set the creation time for the signature. |
void |
setSignatureExpirationTime(boolean isCritical,
long seconds)
Set the number of seconds a signature is valid for after the time of its creation. |
void |
setSignerUserID(boolean isCritical,
java.lang.String userID)
|
void |
setTrust(boolean isCritical,
int depth,
int trustAmount)
Add a TrustSignature packet to the signature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PGPSignatureSubpacketGenerator()
Method Detail |
---|
public void setRevocable(boolean isCritical, boolean isRevocable)
public void setExportable(boolean isCritical, boolean isExportable)
public void setTrust(boolean isCritical, int depth, int trustAmount)
isCritical
- true if the packet is critical.depth
- depth level.trustAmount
- trust amount.public void setKeyExpirationTime(boolean isCritical, long seconds)
isCritical
- true if should be treated as critical, false otherwise.seconds
- public void setSignatureExpirationTime(boolean isCritical, long seconds)
isCritical
- true if should be treated as critical, false otherwise.seconds
- public void setSignatureCreationTime(boolean isCritical, java.util.Date date)
Note: this overrides the generation of a creation time when the signature is generated.
public void setPreferredHashAlgorithms(boolean isCritical, int[] algorithms)
public void setPreferredSymmetricAlgorithms(boolean isCritical, int[] algorithms)
public void setPreferredCompressionAlgorithms(boolean isCritical, int[] algorithms)
public void setKeyFlags(boolean isCritical, int flags)
public void setSignerUserID(boolean isCritical, java.lang.String userID)
public void setEmbeddedSignature(boolean isCritical, PGPSignature pgpSignature) throws java.io.IOException
java.io.IOException
public void setPrimaryUserID(boolean isCritical, boolean isPrimaryUserID)
public void setNotationData(boolean isCritical, boolean isHumanReadable, java.lang.String notationName, java.lang.String notationValue)
public PGPSignatureSubpacketVector generate()
|
Bouncy Castle Cryptography Library 1.45 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |