Skip navigation links

Oracle Fusion Middleware REST Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E26380-02


oracle.security.restsec.jwt
Enum JwtToken.SIGN_ALGORITHM

java.lang.Object
  extended by java.lang.Enum<JwtToken.SIGN_ALGORITHM>
      extended by oracle.security.restsec.jwt.JwtToken.SIGN_ALGORITHM

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JwtToken.SIGN_ALGORITHM>
Enclosing class:
JwtToken

public static enum JwtToken.SIGN_ALGORITHM
extends java.lang.Enum<JwtToken.SIGN_ALGORITHM>

This represents the specific cryptographic algorithms to sign the contents of the JWT token.


Enum Constant Summary
ES256
          ECDSA using P-256 curve and SHA-256 hash algorithm
ES384
          ECDSA using P-384 curve and SHA-384 hash algorithm
ES512
          ECDSA using P-521 curve and SHA-512 hash algorithm
HS256
          HMAC using SHA-256 hash algorithm
HS384
          HMAC using SHA-384 hash algorithm
HS512
          HMAC using SHA-512 hash algorithm
none
           This represents the sign algorithm value to be used when signing of JWT token is not required.
RS256
          RSA using SHA-256 hash algorithm
RS384
          RSA using SHA-384 hash algorithm
RS512
          RSA using SHA-512 hash algorithm

 

Method Summary
static JwtToken.SIGN_ALGORITHM valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JwtToken.SIGN_ALGORITHM[] 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

none

public static final JwtToken.SIGN_ALGORITHM none

This represents the sign algorithm value to be used when signing of JWT token is not required.


RS256

public static final JwtToken.SIGN_ALGORITHM RS256
RSA using SHA-256 hash algorithm

RS384

public static final JwtToken.SIGN_ALGORITHM RS384
RSA using SHA-384 hash algorithm

RS512

public static final JwtToken.SIGN_ALGORITHM RS512
RSA using SHA-512 hash algorithm

ES256

public static final JwtToken.SIGN_ALGORITHM ES256
ECDSA using P-256 curve and SHA-256 hash algorithm

ES384

public static final JwtToken.SIGN_ALGORITHM ES384
ECDSA using P-384 curve and SHA-384 hash algorithm

ES512

public static final JwtToken.SIGN_ALGORITHM ES512
ECDSA using P-521 curve and SHA-512 hash algorithm

HS256

public static final JwtToken.SIGN_ALGORITHM HS256
HMAC using SHA-256 hash algorithm

HS384

public static final JwtToken.SIGN_ALGORITHM HS384
HMAC using SHA-384 hash algorithm

HS512

public static final JwtToken.SIGN_ALGORITHM HS512
HMAC using SHA-512 hash algorithm

Method Detail

values

public static JwtToken.SIGN_ALGORITHM[] 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 (JwtToken.SIGN_ALGORITHM c : JwtToken.SIGN_ALGORITHM.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JwtToken.SIGN_ALGORITHM valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

Skip navigation links

Oracle Fusion Middleware REST Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E26380-02


Copyright © 2011, 2013 , Oracle. All rights reserved.