public interface AsymmetricKeyManager extends KeyManager
Modifier and Type | Method and Description |
---|---|
java.security.PrivateKey |
getPrivateKey(Context context)
Returns the private key that should be used for asymmetric operations for the given context.
|
java.security.PublicKey |
getPublicKey(Context context)
Returns the public key that should be used for asymmetric operations for the given context.
|
java.util.Map<java.lang.String,java.security.PublicKey> |
getTrustedKeys(Context context)
Method retrieve a list of trusted public keys used to verify signatures..
|
getProvider
java.security.PublicKey getPublicKey(Context context) throws java.lang.UnsupportedOperationException, InternalErrorException
context
- related context.java.lang.UnsupportedOperationException
- if operation in combination with given context isn't
supported.InternalErrorException
- if internal error occurred parsing/generating public key.java.security.PrivateKey getPrivateKey(Context context) throws java.lang.UnsupportedOperationException, InternalErrorException
context
- related context.java.lang.UnsupportedOperationException
- if operation in combination with given context isn't
supported.InternalErrorException
- if internal error occurred parsing/generating private key.java.util.Map<java.lang.String,java.security.PublicKey> getTrustedKeys(Context context) throws java.lang.UnsupportedOperationException, InternalErrorException
context
- related context.java.lang.UnsupportedOperationException
- if operation in combination with given context isn't
supported.InternalErrorException
- if internal error occurred retrieving the public keys.