public interface KeyProvider
KeyProvider
provides a simple API to obtain cryptographic keys stored in
a storage system.The underlying storage system is indicated by the getLabel()
method.
Currently supported algorithm are defined in Algorithms
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STORAGE_SUPPORT
The service registration property indicating which storage support to use for
this bundle instance ("granite.crypto.storage").
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getStorageType()
Returns a short description of the support bundle to indicate what
kind of storage is going to be used.
|
byte[] |
obtainKey(Algorithms algorithm)
Obtain the current cryptographic key present in the storage.
|
static final java.lang.String STORAGE_SUPPORT
java.lang.String getStorageType()
byte[] obtainKey(Algorithms algorithm) throws CryptoException
KeyGenerator
and stays the same
for the lifetime of the service (unless is physically erased in the storage
system)algorithm
- the standard string name of the algorithm.
Currently supported algorithm are defined
in Algorithms
CryptoException
- If any problem occurs while obtaining the key"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"