org.mozilla.jss.crypto

Interface SymmetricKey

public interface SymmetricKey

Nested Class Summary
static classSymmetricKey.NotExtractableException
static classSymmetricKey.Type
static classSymmetricKey.Usage
In PKCS #11, each key can be marked with the operations it will be used to perform.
Field Summary
static SymmetricKey.TypeAES
static SymmetricKey.TypeDES
static SymmetricKey.TypeDES3
static SymmetricKey.TypeRC2
static SymmetricKey.TypeRC4
static SymmetricKey.TypeSHA1_HMAC
Method Summary
StringgetAlgorithm()
byte[]getEncoded()
StringgetFormat()
byte[]getKeyData()
intgetLength()
CryptoTokengetOwningToken()
intgetStrength()
SymmetricKey.TypegetType()

Field Detail

AES

public static final SymmetricKey.Type AES

DES

public static final SymmetricKey.Type DES

DES3

public static final SymmetricKey.Type DES3

RC2

public static final SymmetricKey.Type RC2

RC4

public static final SymmetricKey.Type RC4

SHA1_HMAC

public static final SymmetricKey.Type SHA1_HMAC

Method Detail

getAlgorithm

public String getAlgorithm()

getEncoded

public byte[] getEncoded()

getFormat

public String getFormat()

getKeyData

public byte[] getKeyData()

getLength

public int getLength()

getOwningToken

public CryptoToken getOwningToken()

getStrength

public int getStrength()

getType

public SymmetricKey.Type getType()