org.bouncycastle.openpgp
Class PGPSignatureSubpacketGenerator
java.lang.Object
|
+--org.bouncycastle.openpgp.PGPSignatureSubpacketGenerator
- public class PGPSignatureSubpacketGenerator
- extends java.lang.Object
Generator for signature subpackets.
Method Summary |
PGPSignatureSubpacketVector |
generate()
|
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 |
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 |
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)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PGPSignatureSubpacketGenerator
public PGPSignatureSubpacketGenerator()
setRevocable
public void setRevocable(boolean isCritical,
boolean isRevocable)
setExportable
public void setExportable(boolean isCritical,
boolean isExportable)
setTrust
public void setTrust(boolean isCritical,
int depth,
int trustAmount)
setKeyExpirationTime
public void setKeyExpirationTime(boolean isCritical,
long seconds)
- Set the number of seconds a key is valid for after the time of its creation.
A value of zero means the key never expires.
- Parameters:
isCritical
- true if should be treated as critical, false otherwise.seconds
-
setSignatureExpirationTime
public void setSignatureExpirationTime(boolean isCritical,
long seconds)
- Set the number of seconds a signature is valid for after the time of its creation.
A value of zero means the signature never expires.
- Parameters:
isCritical
- true if should be treated as critical, false otherwise.seconds
-
setPreferredHashAlgorithms
public void setPreferredHashAlgorithms(boolean isCritical,
int[] algorithms)
setPreferredSymmetricAlgorithms
public void setPreferredSymmetricAlgorithms(boolean isCritical,
int[] algorithms)
setPreferredCompressionAlgorithms
public void setPreferredCompressionAlgorithms(boolean isCritical,
int[] algorithms)
setKeyFlags
public void setKeyFlags(boolean isCritical,
int flags)
setSignerUserID
public void setSignerUserID(boolean isCritical,
java.lang.String userID)
setPrimaryUserID
public void setPrimaryUserID(boolean isCritical,
boolean isPrimaryUserID)
generate
public PGPSignatureSubpacketVector generate()