|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectexamples.ExampleSecretKeyLookup
public class ExampleSecretKeyLookup
A simple SecretKeyLookup that returns the same key
each time lookup() is called. All of the provided arguments in
the call to this implementation are ignored. The purpose of this
class is to simulate a secret key lookup for use by toolkit
examples.
| Constructor Summary | |
|---|---|
ExampleSecretKeyLookup(javax.crypto.SecretKey key)
Constructor for ExampleSecretKeyLookup that
specifies the SecretKey to return from the
lookup() method. |
|
| Method Summary | |
|---|---|
javax.crypto.SecretKey |
lookup(byte[] keyName,
ContentEncryptionAlgorithmIdentifier algorithm)
Simply returns the current secret cryptographic key, ignoring all of the provided lookup()
parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExampleSecretKeyLookup(javax.crypto.SecretKey key)
ExampleSecretKeyLookup that
specifies the SecretKey to return from the
lookup() method.
key - a secret cryptographic key to establish for future lookup| Method Detail |
|---|
public javax.crypto.SecretKey lookup(byte[] keyName,
ContentEncryptionAlgorithmIdentifier algorithm)
lookup()
parameters.
lookup in interface SecretKeyLookupkeyName - the local name of a Content Encryption Key (CEK)algorithm - a content encryption algoithm identifier, a value
of ASN.1 type ContentEncryptionAlgorithmIdentifier
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||