public final class KeyPurpose
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static KeyPurpose[] |
ALL_PURPOSES |
static KeyPurpose |
DECRYPT |
private java.lang.String |
description |
static KeyPurpose[] |
DSA_PRIVATE_KEY_PURPOSES |
static KeyPurpose[] |
DSA_PUBLIC_KEY_PURPOSES |
static KeyPurpose |
ENCRYPT |
static KeyPurpose[] |
PRIVATE_KEY_PURPOSES |
static KeyPurpose[] |
PUBLIC_KEY_PURPOSES |
static KeyPurpose |
SIGN |
static KeyPurpose |
VERIFY |
Modifier | Constructor and Description |
---|---|
private |
KeyPurpose(java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
static KeyPurpose[] |
getPurposes(java.security.Key key) |
boolean |
served(KeyPurpose[] purposes) |
protected static boolean |
serves(KeyPurpose[] purposes,
KeyPurpose purpose) |
java.lang.String |
toString() |
private final java.lang.String description
public static final KeyPurpose SIGN
public static final KeyPurpose VERIFY
public static final KeyPurpose ENCRYPT
public static final KeyPurpose DECRYPT
public static final KeyPurpose[] ALL_PURPOSES
public static final KeyPurpose[] PRIVATE_KEY_PURPOSES
public static final KeyPurpose[] PUBLIC_KEY_PURPOSES
public static final KeyPurpose[] DSA_PRIVATE_KEY_PURPOSES
public static final KeyPurpose[] DSA_PUBLIC_KEY_PURPOSES
public java.lang.String toString()
toString
in class java.lang.Object
public boolean served(KeyPurpose[] purposes)
protected static final boolean serves(KeyPurpose[] purposes, KeyPurpose purpose)
public static final KeyPurpose[] getPurposes(java.security.Key key)