Logo Search packages:      
Sourcecode: libgnucrypto-java version File versions  Download package

gnu::crypto::keyring::PasswordEncryptedEntry Class Reference

Inheritance diagram for gnu::crypto::keyring::PasswordEncryptedEntry:

gnu::crypto::keyring::MaskableEnvelopeEntry gnu::crypto::Registry gnu::crypto::keyring::EnvelopeEntry gnu::crypto::keyring::Entry

List of all members.


Detailed Description

An envelope that is encrypted with a password-derived key.

Definition at line 80 of file PasswordEncryptedEntry.java.


Public Member Functions

void add (Entry entry)
boolean containsAlias (String alias)
boolean containsEntry (Entry entry)
void decrypt (char[] password) throws IllegalArgumentException, WrongPaddingException
void encode (DataOutputStream out) throws IOException
void encode (DataOutputStream out, char[] password) throws IOException
void encrypt (char[] password) throws IOException
List get (String alias)
String getAliasList ()
List getEntries ()
byte[] getPayload ()
Properties getProperties ()
boolean isMasked ()
 PasswordEncryptedEntry (String cipher, String mode, int keylen, Properties properties)
void remove (String alias)
boolean remove (Entry entry)

Static Public Member Functions

static PasswordEncryptedEntry decode (DataInputStream in) throws IOException
static PasswordEncryptedEntry decode (DataInputStream in, char[] password) throws IOException

Public Attributes

String AES_CIPHER = "aes"
String ANUBIS_CIPHER = "anubis"
String ARCFOUR_PRNG = "arcfour"
String BLOWFISH_CIPHER = "blowfish"
String CAST128_CIPHER = "cast128"
String CAST5_CIPHER = "cast5"
String CAST_128_CIPHER = "cast-128"
String CBC_MODE = "cbc"
String CFB_MODE = "cfb"
String CTR_MODE = "ctr"
String DES_CIPHER = "des"
String DESEDE_CIPHER = "desede"
String DH_KA = "dh"
String DH_KPG = "dh"
String DSA_KPG = "dsa"
String DSA_SIG = "dsa"
String DSS_KPG = "dss"
String DSS_SIG = "dss"
String ECB_MODE = "ecb"
String ELGAMAL_KA = "elgamal"
String EME_PKCS1_V1_5_PAD = "eme-pkcs1-v1.5"
int GKR_CERTIFICATES = 3
int GKR_CIPHER_AES_128_CBC = 1
int GKR_CIPHER_AES_128_OFB = 0
int GKR_HMAC_MD5_128 = 0
int GKR_HMAC_MD5_96 = 2
int GKR_HMAC_SHA_160 = 1
int GKR_HMAC_SHA_96 = 3
byte[] GKR_MAGIC = new byte[] { 0x47, 0x4b, 0x52, 0x01 }
int GKR_PRIVATE_KEYS = 0
int GKR_PUBLIC_CREDENTIALS = 1
String HAVAL_HASH = "haval"
String HMAC_NAME_PREFIX = "hmac-"
String ICM_MODE = "icm"
String ICM_PRNG = "icm"
String KHAZAD_CIPHER = "khazad"
byte[] MAGIC_RAW_DH_PRIVATE_KEY = new byte[] {0x47, RAW_ENCODING_ID, 0x48, 0x70}
byte[] MAGIC_RAW_DH_PUBLIC_KEY = new byte[] {0x47, RAW_ENCODING_ID, 0x48, 0x50}
byte[] MAGIC_RAW_DSS_PRIVATE_KEY = new byte[] {0x47, RAW_ENCODING_ID, 0x44, 0x70}
byte[] MAGIC_RAW_DSS_PUBLIC_KEY = new byte[] {0x47, RAW_ENCODING_ID, 0x44, 0x50}
byte[] MAGIC_RAW_DSS_SIGNATURE = new byte[] {0x47, RAW_ENCODING_ID, 0x44, 0x53}
byte[] MAGIC_RAW_RSA_PRIVATE_KEY = new byte[] {0x47, RAW_ENCODING_ID, 0x52, 0x70}
byte[] MAGIC_RAW_RSA_PSS_SIGNATURE = new byte[] {0x47, RAW_ENCODING_ID, 0x52, 0x53}
byte[] MAGIC_RAW_RSA_PUBLIC_KEY = new byte[] {0x47, RAW_ENCODING_ID, 0x52, 0x50}
byte[] MAGIC_RAW_SRP_PRIVATE_KEY = new byte[] {0x47, RAW_ENCODING_ID, 0x53, 0x70}
byte[] MAGIC_RAW_SRP_PUBLIC_KEY = new byte[] {0x47, RAW_ENCODING_ID, 0x53, 0x50}
String MD2_HASH = "md2"
String MD4_HASH = "md4"
String MD5_HASH = "md5"
String MD_PRNG = "md"
String NULL_CIPHER = "null"
String OFB_MODE = "ofb"
String PBKDF2_PRNG_PREFIX = "pbkdf2-"
String PKCS7_PAD = "pkcs7"
String QOP_AUTH = "auth"
String QOP_AUTH_CONF = "auth-conf"
String QOP_AUTH_INT = "auth-int"
String RAW_ENCODING = "gnu.crypto.raw.format"
int RAW_ENCODING_ID = 1
String RC4_PRNG = "rc4"
String REUSE_FALSE = "false"
String REUSE_TRUE = "true"
String RIJNDAEL_CIPHER = "rijndael"
String RIPEMD128_HASH = "ripemd128"
String RIPEMD160_HASH = "ripemd160"
String RIPEMD_128_HASH = "ripemd-128"
String RIPEMD_160_HASH = "ripemd-160"
String RSA_KPG = "rsa"
String RSA_PKCS1_V1_5_SIG = "rsa-pkcs1-v1.5"
String RSA_PSS_SIG = "rsa-pss"
String SASL_ANONYMOUS_MECHANISM = "ANONYMOUS"
String SASL_AUTH_INFO_PROVIDER_PKGS = SASL_PREFIX + ".auth.info.provider.pkgs"
String SASL_AUTHORISATION_ID = SASL_PREFIX + ".authorisation.ID"
int SASL_BUFFER_MAX_LIMIT = 2147483643
String SASL_CALLBACK_HANDLER = SASL_PREFIX + ".callback.handler"
String SASL_CHANNEL_BINDING = SASL_PREFIX + ".channel.binding"
String SASL_CRAM_MD5_MECHANISM = "CRAM-MD5"
int SASL_FOUR_BYTE_MAX_LIMIT = 2147483383
String SASL_HMAC_MD5_IALG = "HMACwithMD5"
String SASL_HMAC_SHA_IALG = "HMACwithSHA"
int SASL_ONE_BYTE_MAX_LIMIT = 255
String SASL_PASSWORD = SASL_PREFIX + ".password"
String SASL_PLAIN_MECHANISM = "PLAIN"
String SASL_PREFIX = "gnu.crypto.sasl"
String SASL_PROTOCOL = SASL_PREFIX + ".protocol"
String SASL_SERVER_NAME = SASL_PREFIX + ".server.name"
String SASL_SRP_MECHANISM = "SRP"
int SASL_TWO_BYTE_MAX_LIMIT = 65535
String SASL_USERNAME = SASL_PREFIX + ".username"
String SERPENT_CIPHER = "serpent"
String SERVER_AUTH_FALSE = "false"
String SERVER_AUTH_TRUE = "true"
String SHA160_HASH = "sha-160"
String SHA1_HASH = "sha1"
String SHA256_HASH = "sha-256"
String SHA384_HASH = "sha-384"
String SHA512_HASH = "sha-512"
String SHA_1_HASH = "sha-1"
String SHA_HASH = "sha"
String SQUARE_CIPHER = "square"
String SRP6_KA = "srp6"
String SRP_KPG = "srp"
String SRP_SASL_KA = "srp-sasl"
String SRP_TLS_KA = "srp-tls"
String STRENGTH_HIGH = "high"
String STRENGTH_LOW = "low"
String STRENGTH_MEDIUM = "medium"
String TBC_PAD = "tbc"
String TIGER_HASH = "tiger"
String TMMH16 = "tmmh16"
String TRIPLEDES_CIPHER = "tripledes"
String TWOFISH_CIPHER = "twofish"
String UHASH32 = "uhash32"
String UMAC32 = "umac32"
String UMAC_PRNG = "umac-kdf"
String WHIRLPOOL_HASH = "whirlpool"

Static Public Attributes

static final int TYPE = 1

Protected Member Functions

void decodeEnvelope (DataInputStream in) throws IOException
void defaultDecode (DataInputStream in) throws IOException
void encodePayload () throws IOException
void setContainingEnvelope (EnvelopeEntry e)
final void setMasked (boolean masked)

Protected Attributes

EnvelopeEntry containingEnvelope
List entries
boolean masked
byte[] payload
Properties properties
int type

Package Attributes

String GNU_CRYPTO = "GNU-CRYPTO"
Integer ITERATION_COUNT = new Integer(1000)

Private Member Functions

IMode getMode (char[] password, int state)

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index