public class ExtendedKeyUsages extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ANY_EXTENDED_KEY_USAGE
{ 2 5 29 37 0 }.
|
static String |
CLIENT_AUTH
Client authentication { 1 3 6 1 5 5 7 3 2 }.
|
static String |
CODE_SIGNING
Code signing { 1 3 6 1 5 5 7 3 3 }.
|
static String |
EMAIL_PROTECTION
Email protection { 1 3 6 1 5 5 7 3 4 }.
|
static String |
OCSP_SIGNING
OCSP Signing { 1 3 6 1 5 5 7 3 9 }.
|
static String |
OID
OID of ExtendedKeyUsage.
|
static String |
SERVER_AUTH
Server authentication { 1 3 6 1 5 5 7 3 1 }.
|
static String |
TIME_STAMPING
Timestamping { 1 3 6 1 5 5 7 3 8 }.
|
Constructor and Description |
---|
ExtendedKeyUsages(Collection<String> usages)
Constructor from string array.
|
ExtendedKeyUsages(String[] usages)
Constructor from string array.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAll() |
boolean |
hasUsage(String usage)
Check if a given usage is authorized.
|
boolean |
isEmpty() |
public static final String OID
public static final String ANY_EXTENDED_KEY_USAGE
public static final String SERVER_AUTH
public static final String CLIENT_AUTH
public static final String CODE_SIGNING
public static final String EMAIL_PROTECTION
public static final String TIME_STAMPING
public static final String OCSP_SIGNING
public ExtendedKeyUsages(String[] usages)
usages
- array of usage OID to add.public ExtendedKeyUsages(Collection<String> usages)
usages
- list of usage OID to add.public boolean hasUsage(String usage)
usage
- the usage oid to check.public boolean isEmpty()
Copyright © 2004–2021 XWiki. All rights reserved.