org.mozilla.jss.crypto

Class SymmetricKey.Usage

public static final class SymmetricKey.Usage extends Object

In PKCS #11, each key can be marked with the operations it will be used to perform. Some tokens require that a key be marked for an operation before the key can be used to perform that operation; other tokens don't care.

When you unwrap a symmetric key, you must specify which one of these operations it will be used to perform.

Field Summary
static SymmetricKey.UsageDECRYPT
static SymmetricKey.UsageENCRYPT
static SymmetricKey.UsageSIGN
static SymmetricKey.UsageUNWRAP
static SymmetricKey.UsageVERIFY
static SymmetricKey.UsageWRAP
Method Summary
intgetVal()

Field Detail

DECRYPT

public static final SymmetricKey.Usage DECRYPT

ENCRYPT

public static final SymmetricKey.Usage ENCRYPT

SIGN

public static final SymmetricKey.Usage SIGN

UNWRAP

public static final SymmetricKey.Usage UNWRAP

VERIFY

public static final SymmetricKey.Usage VERIFY

WRAP

public static final SymmetricKey.Usage WRAP

Method Detail

getVal

public int getVal()