Since: API level 20
public class

KeyGenParameterSpec

extends Object
implements AlgorithmParameterSpec
java.lang.Object
   ↳ com.samsung.android.knox.ucm.plugin.keystore.KeyGenParameterSpec

Class Overview

Credential Storage provides APIs for KeyPair Generation in Credential Storage. To support KeyPair Generation, plugin should implement UcmAgentKeyPairGeneratorSpi that is extended from KeyPairGeneratorSpi.
In initialize API of KeyPairGeneratorSpi, 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();
 }
 

Since
API level 20
KNOX 2.7

Summary

Public Methods
String getAlgorithm()
int getKeySize()
String getKeystoreAlias()
Bundle getOptions()
int getOwnerUid()
int getResourceId()
int getSourceUid()
boolean isManaged()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public String getAlgorithm ()

Since: API level 20

Since
API level 20
KNOX 2.7

public int getKeySize ()

Since: API level 20

Since
API level 20
KNOX 2.7

public String getKeystoreAlias ()

Since: API level 20

Since
API level 20
KNOX 2.7

public Bundle getOptions ()

Since: API level 20

Since
API level 20
KNOX 2.7

public int getOwnerUid ()

Since: API level 20

Since
API level 20
KNOX 2.7

public int getResourceId ()

Since: API level 20

Since
API level 20
KNOX 2.7

public int getSourceUid ()

Since: API level 20

Since
API level 20
KNOX 2.7

public boolean isManaged ()

Since: API level 20

Since
API level 20
KNOX 2.7