org.apache.directory.server.kerberos.shared.crypto.encryption
Class KeyUsage

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.crypto.encryption.KeyUsage
All Implemented Interfaces:
java.lang.Comparable<KeyUsage>

public final class KeyUsage
extends java.lang.Object
implements java.lang.Comparable<KeyUsage>

From RFC 4120, "The Kerberos Network Authentication Service (V5)": 7.5.1. Key Usage Numbers The encryption and checksum specifications in [RFC3961] require as input a "key usage number", to alter the encryption key used in any specific message in order to make certain types of cryptographic attack more difficult. These are the key usage values assigned in [RFC 4120]:

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Field Summary
static KeyUsage NUMBER1
          AS-REQ PA-ENC-TIMESTAMP padata timestamp, encrypted with the client key (Section 5.2.7.2)
static KeyUsage NUMBER10
          AP-REQ Authenticator cksum, keyed with the application session key (Section 5.5.1)
static KeyUsage NUMBER11
          AP-REQ Authenticator (includes application authenticator subkey), encrypted with the application session key (Section 5.5.1)
static KeyUsage NUMBER12
          AP-REP encrypted part (includes application session subkey), encrypted with the application session key (Section 5.5.2)
static KeyUsage NUMBER13
          KRB-PRIV encrypted part, encrypted with a key chosen by the application (Section 5.7.1)
static KeyUsage NUMBER2
          AS-REP Ticket and TGS-REP Ticket (includes TGS session key or application session key), encrypted with the service key (Section 5.3)
static KeyUsage NUMBER3
          AS-REP encrypted part (includes TGS session key or application session key), encrypted with the client key (Section 5.4.2)
static KeyUsage NUMBER4
          TGS-REQ KDC-REQ-BODY AuthorizationData, encrypted with the TGS session key (Section 5.4.1)
static KeyUsage NUMBER5
          TGS-REQ KDC-REQ-BODY AuthorizationData, encrypted with the TGS authenticator subkey (Section 5.4.1)
static KeyUsage NUMBER6
          TGS-REQ PA-TGS-REQ padata AP-REQ Authenticator cksum, keyed with the TGS session key (Section 5.5.1)
static KeyUsage NUMBER7
          TGS-REQ PA-TGS-REQ padata AP-REQ Authenticator (includes TGS authenticator subkey), encrypted with the TGS session key (Section 5.5.1)
static KeyUsage NUMBER8
          TGS-REP encrypted part (includes application session key), encrypted with the TGS session key (Section 5.4.2)
static KeyUsage NUMBER9
          TGS-REP encrypted part (includes application session key), encrypted with the TGS authenticator subkey (Section 5.4.2)
static java.util.List<KeyUsage> VALUES
          VALUES needs to be located here, otherwise illegal forward reference.
 
Method Summary
 int compareTo(KeyUsage that)
           
 int getOrdinal()
          Returns the number associated with this key usage number.
static KeyUsage getTypeByOrdinal(int type)
          Returns the key usage number type when specified by its ordinal.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NUMBER1

public static final KeyUsage NUMBER1
AS-REQ PA-ENC-TIMESTAMP padata timestamp, encrypted with the client key (Section 5.2.7.2)


NUMBER2

public static final KeyUsage NUMBER2
AS-REP Ticket and TGS-REP Ticket (includes TGS session key or application session key), encrypted with the service key (Section 5.3)


NUMBER3

public static final KeyUsage NUMBER3
AS-REP encrypted part (includes TGS session key or application session key), encrypted with the client key (Section 5.4.2)


NUMBER4

public static final KeyUsage NUMBER4
TGS-REQ KDC-REQ-BODY AuthorizationData, encrypted with the TGS session key (Section 5.4.1)


NUMBER5

public static final KeyUsage NUMBER5
TGS-REQ KDC-REQ-BODY AuthorizationData, encrypted with the TGS authenticator subkey (Section 5.4.1)


NUMBER6

public static final KeyUsage NUMBER6
TGS-REQ PA-TGS-REQ padata AP-REQ Authenticator cksum, keyed with the TGS session key (Section 5.5.1)


NUMBER7

public static final KeyUsage NUMBER7
TGS-REQ PA-TGS-REQ padata AP-REQ Authenticator (includes TGS authenticator subkey), encrypted with the TGS session key (Section 5.5.1)


NUMBER8

public static final KeyUsage NUMBER8
TGS-REP encrypted part (includes application session key), encrypted with the TGS session key (Section 5.4.2)


NUMBER9

public static final KeyUsage NUMBER9
TGS-REP encrypted part (includes application session key), encrypted with the TGS authenticator subkey (Section 5.4.2)


NUMBER10

public static final KeyUsage NUMBER10
AP-REQ Authenticator cksum, keyed with the application session key (Section 5.5.1)


NUMBER11

public static final KeyUsage NUMBER11
AP-REQ Authenticator (includes application authenticator subkey), encrypted with the application session key (Section 5.5.1)


NUMBER12

public static final KeyUsage NUMBER12
AP-REP encrypted part (includes application session subkey), encrypted with the application session key (Section 5.5.2)


NUMBER13

public static final KeyUsage NUMBER13
KRB-PRIV encrypted part, encrypted with a key chosen by the application (Section 5.7.1)


VALUES

public static final java.util.List<KeyUsage> VALUES
VALUES needs to be located here, otherwise illegal forward reference.

Method Detail

getTypeByOrdinal

public static KeyUsage getTypeByOrdinal(int type)
Returns the key usage number type when specified by its ordinal.

Parameters:
type -
Returns:
The key usage number type.

getOrdinal

public int getOrdinal()
Returns the number associated with this key usage number.

Returns:
The key usage number

compareTo

public int compareTo(KeyUsage that)
Specified by:
compareTo in interface java.lang.Comparable<KeyUsage>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.