Package org.pgpainless.key.info
Class KeyInfo
- java.lang.Object
- 
- org.pgpainless.key.info.KeyInfo
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCurveName()static StringgetCurveName(org.bouncycastle.bcpg.ECPublicBCPGKey key)static StringgetCurveName(org.bouncycastle.openpgp.PGPPublicKey publicKey)booleanhasDummyS2K()Returns indication that a contained secret key has S2K of a type GNU_DUMMY_S2K.static booleanhasDummyS2K(org.bouncycastle.openpgp.PGPSecretKey secretKey)Returns indication that a secret key has S2K of a type GNU_DUMMY_S2K.booleanisDecrypted()Returns indication that a contained secret key is not encrypted.static booleanisDecrypted(org.bouncycastle.openpgp.PGPSecretKey secretKey)Returns indication that a secret key is not encrypted.booleanisEncrypted()Returns indication that a contained secret key is encrypted.static booleanisEncrypted(org.bouncycastle.openpgp.PGPSecretKey secretKey)Returns indication that a secret key is encrypted.
 
- 
- 
- 
Method Detail- 
getCurveNamepublic String getCurveName() 
 - 
isEncryptedpublic boolean isEncrypted() Returns indication that a contained secret key is encrypted.- Returns:
- true if secret key is encrypted, false if secret key is not encrypted or there is public key only.
 
 - 
isDecryptedpublic boolean isDecrypted() Returns indication that a contained secret key is not encrypted.- Returns:
- true if secret key is not encrypted or there is public key only, false if secret key is encrypted.
 
 - 
hasDummyS2Kpublic boolean hasDummyS2K() Returns indication that a contained secret key has S2K of a type GNU_DUMMY_S2K.- Returns:
- true if secret key has S2K of a type GNU_DUMMY_S2K, false if there is public key only, or S2K on the secret key is absent or not of a type GNU_DUMMY_S2K.
 
 - 
getCurveNamepublic static String getCurveName(org.bouncycastle.openpgp.PGPPublicKey publicKey) 
 - 
getCurveNamepublic static String getCurveName(org.bouncycastle.bcpg.ECPublicBCPGKey key) 
 - 
isEncryptedpublic static boolean isEncrypted(org.bouncycastle.openpgp.PGPSecretKey secretKey) Returns indication that a secret key is encrypted.- Parameters:
- secretKey- A secret key to examine.
- Returns:
- true if secret key is encrypted, false otherwise.
 
 - 
isDecryptedpublic static boolean isDecrypted(org.bouncycastle.openpgp.PGPSecretKey secretKey) Returns indication that a secret key is not encrypted.- Parameters:
- secretKey- A secret key to examine.
- Returns:
- true if secret key is encrypted, false otherwise.
 
 - 
hasDummyS2Kpublic static boolean hasDummyS2K(org.bouncycastle.openpgp.PGPSecretKey secretKey) Returns indication that a secret key has S2K of a type GNU_DUMMY_S2K.- Parameters:
- secretKey- A secret key to examine.
- Returns:
- true if secret key has S2K of a type GNU_DUMMY_S2K, false otherwise.
 
 
- 
 
-