edu.vt.middleware.crypt.x509.types
Enum KeyUsageBits

java.lang.Object
  extended by java.lang.Enum<KeyUsageBits>
      extended by edu.vt.middleware.crypt.x509.types.KeyUsageBits
All Implemented Interfaces:
Serializable, Comparable<KeyUsageBits>

public enum KeyUsageBits
extends Enum<KeyUsageBits>

Representation of the bit meanings in the KeyUsage BIT STRING type defined in section 4.2.1.3 of RFC 2459.

Version:
$Revision: 424 $
Author:
Middleware Services

Enum Constant Summary
CRLSign
          cRLSign bit.
DataEncipherment
          dataEncipherment bit.
DecipherOnly
          decipherOnly bit.
DigitalSignature
          digitalSignature bit.
EncipherOnly
          encipherOnly bit.
KeyAgreement
          keyAgreement bit.
KeyCertSign
          keyCertSign bit.
KeyEncipherment
          keyEncipherment bit.
NonRepudiation
          nonRepudiation bit.
 
Method Summary
 int getMask()
           
static KeyUsageBits valueOf(String name)
          Returns the enum constant of this type with the specified name.
static KeyUsageBits[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DigitalSignature

public static final KeyUsageBits DigitalSignature
digitalSignature bit.


NonRepudiation

public static final KeyUsageBits NonRepudiation
nonRepudiation bit.


KeyEncipherment

public static final KeyUsageBits KeyEncipherment
keyEncipherment bit.


DataEncipherment

public static final KeyUsageBits DataEncipherment
dataEncipherment bit.


KeyAgreement

public static final KeyUsageBits KeyAgreement
keyAgreement bit.


KeyCertSign

public static final KeyUsageBits KeyCertSign
keyCertSign bit.


CRLSign

public static final KeyUsageBits CRLSign
cRLSign bit.


EncipherOnly

public static final KeyUsageBits EncipherOnly
encipherOnly bit.


DecipherOnly

public static final KeyUsageBits DecipherOnly
decipherOnly bit.

Method Detail

values

public static KeyUsageBits[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (KeyUsageBits c : KeyUsageBits.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static KeyUsageBits valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getMask

public int getMask()
Returns:
Bit mask value.


Copyright © 2003-2011 Virginia Tech. All Rights Reserved.