You are currently viewing a snapshot of taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to, please file a bug.

Class SymmetricKey.Usage

  extended by org.mozilla.jss.crypto.SymmetricKey.Usage
Enclosing interface:

public static final class SymmetricKey.Usage
extends java.lang.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.Usage DECRYPT
static SymmetricKey.Usage ENCRYPT
static SymmetricKey.Usage SIGN
static SymmetricKey.Usage UNWRAP
static SymmetricKey.Usage VERIFY
static SymmetricKey.Usage WRAP
Method Summary
 int getVal()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static final SymmetricKey.Usage ENCRYPT


public static final SymmetricKey.Usage DECRYPT


public static final SymmetricKey.Usage WRAP


public static final SymmetricKey.Usage UNWRAP


public static final SymmetricKey.Usage SIGN


public static final SymmetricKey.Usage VERIFY
Method Detail


public int getVal()