org.xwiki.crypto.pkix.params.x509certificate.extension
Class ExtendedKeyUsages

java.lang.Object
  extended by org.xwiki.crypto.pkix.params.x509certificate.extension.ExtendedKeyUsages

@Unstable
public class ExtendedKeyUsages
extends Object

Extended Key Usage.

Since:
5.4
Version:
$Id: ec86b1a015ace2b627b648a1670e037e14a7197d $

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

OID

public static final String OID
OID of ExtendedKeyUsage.


ANY_EXTENDED_KEY_USAGE

public static final String ANY_EXTENDED_KEY_USAGE
{ 2 5 29 37 0 }.

See Also:
Constant Field Values

SERVER_AUTH

public static final String SERVER_AUTH
Server authentication { 1 3 6 1 5 5 7 3 1 }.

See Also:
Constant Field Values

CLIENT_AUTH

public static final String CLIENT_AUTH
Client authentication { 1 3 6 1 5 5 7 3 2 }.

See Also:
Constant Field Values

CODE_SIGNING

public static final String CODE_SIGNING
Code signing { 1 3 6 1 5 5 7 3 3 }.

See Also:
Constant Field Values

EMAIL_PROTECTION

public static final String EMAIL_PROTECTION
Email protection { 1 3 6 1 5 5 7 3 4 }.

See Also:
Constant Field Values

TIME_STAMPING

public static final String TIME_STAMPING
Timestamping { 1 3 6 1 5 5 7 3 8 }.

See Also:
Constant Field Values

OCSP_SIGNING

public static final String OCSP_SIGNING
OCSP Signing { 1 3 6 1 5 5 7 3 9 }.

See Also:
Constant Field Values
Constructor Detail

ExtendedKeyUsages

public ExtendedKeyUsages(String[] usages)
Constructor from string array.

Parameters:
usages - array of usage OID to add.

ExtendedKeyUsages

public ExtendedKeyUsages(Collection<String> usages)
Constructor from string array.

Parameters:
usages - list of usage OID to add.
Method Detail

hasUsage

public boolean hasUsage(String usage)
Check if a given usage is authorized.

Parameters:
usage - the usage oid to check.
Returns:
true if the usage is authorized.

getAll

public Set<String> getAll()
Returns:
all extended usage oid.

isEmpty

public boolean isEmpty()
Returns:
true if no extended usage has been added.


Copyright © 2004–2014 XWiki. All rights reserved.