|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xwiki.crypto.pkix.params.x509certificate.extension.ExtendedKeyUsages
@Unstable public class ExtendedKeyUsages
Extended Key Usage.
Field Summary | |
---|---|
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 Summary | |
---|---|
ExtendedKeyUsages(Collection<String> usages)
Constructor from string array. |
|
ExtendedKeyUsages(String[] usages)
Constructor from string array. |
Method Summary | |
---|---|
Set<String> |
getAll()
|
boolean |
hasUsage(String usage)
Check if a given usage is authorized. |
boolean |
isEmpty()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ExtendedKeyUsages(String[] usages)
usages
- array of usage OID to add.public ExtendedKeyUsages(Collection<String> usages)
usages
- list of usage OID to add.Method Detail |
---|
public boolean hasUsage(String usage)
usage
- the usage oid to check.
public Set<String> getAll()
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |