java.lang.Object |
↳ |
com.samsung.android.knox.ucm.plugin.keystore.KeyGenParameterSpec |
Class Overview
Credential Storage provides APIs for Key and KeyPair Generation in Credential Storage. To support Key and KeyPair Generation, plugin should implement
UcmAgentKeyPairGeneratorSpi that is extended from KeyPairGeneratorSpi or UcmAgentKeyGeneratorSpi that is extended from KeyGeneratorSpi.
In initialize API of KeyPairGeneratorSpi or KeyGeneratorSpi, Credential Storage can get key information.
public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException {
if ((params instanceof KeyGenParameterSpec) == false) {
Log.e(TAG, "AlgorithmParameterSpec is not UCM KeyGenParameterSpec");
throw new InvalidAlgorithmParameterException("AlgorithmParameterSpec is not UCM KeyGenParameterSpec");
}
KeyGenParameterSpec spec = (KeyGenParameterSpec) params;
int keySize = spec.getKeySize();
boolean isManaged = spec.isManaged();
String alias = spec.getKeystoreAlias();
int sourceUid = spec.getSourceUid();
Bundle options = spec.getOptions();
String algorithm = spec.getAlgorithm();
int ownerUid = spec.getOwnerUid();
int resourceId = spec.getResourceId();
}
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Methods
public
String
getEcCurveName
()
public
String
getKeystoreAlias
()
public
int
getOwnerUid
()
public
int
getPurposes
()
public
int
getResourceId
()
public
int
getSourceUid
()
public
boolean
isManaged
()
public
boolean
isRandomizedEncryptionRequired
()