Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

CryptoPrimitive

public final enum CryptoPrimitive
extends Enum<CryptoPrimitive>

java.lang.Object
   ↳ java.lang.Enum<java.security.CryptoPrimitive>
     ↳ java.security.CryptoPrimitive


An enumeration of cryptographic primitives.

Summary

Enum values

CryptoPrimitive  BLOCK_CIPHER

Symmetric primitive: block cipher  

CryptoPrimitive  KEY_AGREEMENT

Asymmetric primitive: key agreement and key distribution  

CryptoPrimitive  KEY_ENCAPSULATION

Asymmetric primitive: key encapsulation mechanism  

CryptoPrimitive  KEY_WRAP

Symmetric primitive: key wrap  

CryptoPrimitive  MAC

Symmetric primitive: message authentication code  

CryptoPrimitive  MESSAGE_DIGEST

Hash function  

CryptoPrimitive  PUBLIC_KEY_ENCRYPTION

Asymmetric primitive: public key encryption  

CryptoPrimitive  SECURE_RANDOM

Cryptographic random number generator  

CryptoPrimitive  SIGNATURE

Asymmetric primitive: signature scheme  

CryptoPrimitive  STREAM_CIPHER

Symmetric primitive: stream cipher  

Public methods

static CryptoPrimitive valueOf(String name)
static final CryptoPrimitive[] values()

Inherited methods

Enum values

BLOCK_CIPHER

added in API level 24
public static final CryptoPrimitive BLOCK_CIPHER

Symmetric primitive: block cipher

KEY_AGREEMENT

added in API level 24
public static final CryptoPrimitive KEY_AGREEMENT

Asymmetric primitive: key agreement and key distribution

KEY_ENCAPSULATION

added in API level 24
public static final CryptoPrimitive KEY_ENCAPSULATION

Asymmetric primitive: key encapsulation mechanism

KEY_WRAP

added in API level 24
public static final CryptoPrimitive KEY_WRAP

Symmetric primitive: key wrap

MAC

added in API level 24
public static final CryptoPrimitive MAC

Symmetric primitive: message authentication code

MESSAGE_DIGEST

added in API level 24
public static final CryptoPrimitive MESSAGE_DIGEST

Hash function

PUBLIC_KEY_ENCRYPTION

added in API level 24
public static final CryptoPrimitive PUBLIC_KEY_ENCRYPTION

Asymmetric primitive: public key encryption

SECURE_RANDOM

added in API level 24
public static final CryptoPrimitive SECURE_RANDOM

Cryptographic random number generator

SIGNATURE

added in API level 24
public static final CryptoPrimitive SIGNATURE

Asymmetric primitive: signature scheme

STREAM_CIPHER

added in API level 24
public static final CryptoPrimitive STREAM_CIPHER

Symmetric primitive: stream cipher

Public methods

valueOf

added in API level 24
public static CryptoPrimitive valueOf (String name)

Parameters
name String

Returns
CryptoPrimitive

values

added in API level 24
public static final CryptoPrimitive[] values ()

Returns
CryptoPrimitive[]