|
JSCAPE MFT Server | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.pgp.PgpKeystore
public class PgpKeystore
PGP keystore. Contains public and secret PGP keyrings mapped to aliases.
Constructor Summary | |
---|---|
PgpKeystore()
Creates a new empty keystore instance. |
|
PgpKeystore(java.util.Map<java.lang.String,org.bouncycastle.openpgp.PGPPublicKeyRing> publicKeys,
java.util.Map<java.lang.String,org.bouncycastle.openpgp.PGPSecretKeyRing> secretKeys)
Creates a new keystore from the public and secret ring maps. |
Method Summary | |
---|---|
void |
add(java.lang.String alias,
org.bouncycastle.openpgp.PGPPublicKeyRing ring)
Adds a new public key to store. |
void |
add(java.lang.String alias,
org.bouncycastle.openpgp.PGPSecretKeyRing ring)
Adds a new secret key to store. |
org.bouncycastle.openpgp.PGPPublicKey |
findEncryptionKey(java.lang.String alias)
Finds key with encryption capability. |
org.bouncycastle.openpgp.PGPPublicKeyRing |
findPublicKey(java.lang.String alias)
Finds public key for the specified alias. |
org.bouncycastle.openpgp.PGPSecretKeyRing |
findSecretKey(java.lang.String alias)
Finds secret key for the specified alias. |
org.bouncycastle.openpgp.PGPSecretKey |
findSigningKey(java.lang.String alias)
Finds key with signing capability. |
java.lang.String[] |
getPublicAliases()
Returns public keys aliases. |
java.util.Map<java.lang.String,org.bouncycastle.openpgp.PGPPublicKeyRing> |
getPublicKeys()
Returns public keys map. |
java.lang.String[] |
getSecretAliases()
Returns secret keys aliases. |
java.util.Map<java.lang.String,org.bouncycastle.openpgp.PGPSecretKeyRing> |
getSecretKeys()
Returns secret keys map. |
void |
setPublicKeys(java.util.Map<java.lang.String,org.bouncycastle.openpgp.PGPPublicKeyRing> value)
Sets public keys map. |
void |
setSecretKeys(java.util.Map<java.lang.String,org.bouncycastle.openpgp.PGPSecretKeyRing> value)
Sets secret keys map. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PgpKeystore(java.util.Map<java.lang.String,org.bouncycastle.openpgp.PGPPublicKeyRing> publicKeys, java.util.Map<java.lang.String,org.bouncycastle.openpgp.PGPSecretKeyRing> secretKeys)
publicKeys
- public keyrings mapsecretKeys
- secret keyrings mappublic PgpKeystore()
Method Detail |
---|
public java.util.Map<java.lang.String,org.bouncycastle.openpgp.PGPPublicKeyRing> getPublicKeys()
public void setPublicKeys(java.util.Map<java.lang.String,org.bouncycastle.openpgp.PGPPublicKeyRing> value)
value
- public keys mappublic java.util.Map<java.lang.String,org.bouncycastle.openpgp.PGPSecretKeyRing> getSecretKeys()
public void setSecretKeys(java.util.Map<java.lang.String,org.bouncycastle.openpgp.PGPSecretKeyRing> value)
value
- secret keys mappublic java.lang.String[] getPublicAliases()
public java.lang.String[] getSecretAliases()
public void add(java.lang.String alias, org.bouncycastle.openpgp.PGPPublicKeyRing ring)
alias
- key aliasring
- public key ringpublic void add(java.lang.String alias, org.bouncycastle.openpgp.PGPSecretKeyRing ring)
alias
- key aliasring
- secret key ringpublic org.bouncycastle.openpgp.PGPPublicKeyRing findPublicKey(java.lang.String alias)
alias
- key alias
null
if key is not foundpublic org.bouncycastle.openpgp.PGPPublicKey findEncryptionKey(java.lang.String alias)
alias
- key alias
null
if key is not foundpublic org.bouncycastle.openpgp.PGPSecretKeyRing findSecretKey(java.lang.String alias)
alias
- key alias
null
if key is not foundpublic org.bouncycastle.openpgp.PGPSecretKey findSigningKey(java.lang.String alias)
alias
- key alias
null
if key is not foundpublic java.lang.String toString()
toString
in class java.lang.Object
|
JSCAPE MFT Server | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |