net.adamcin.httpsig.api
Class Constants

java.lang.Object
  extended by net.adamcin.httpsig.api.Constants

public final class Constants
extends Object

Constant values used by the Signature Specification


Field Summary
static String ALGORITHM
          Challenge header "algorithm" parameter
static String ALGORITHMS
          Challenge header "algorithms" parameter
static Collection<Algorithm> ALL_SUPPORTED_ALGORITHMS
           
static String AUTHORIZATION
          Http request header representing client credentials
static String CHALLENGE
          Http response header representing a server authentication challenge
static Charset CHARSET
          Default encoding for header values.
static List<String> DEFAULT_HEADERS
           
static KeyId DEFAULT_KEY_IDENTIFIER
           
static String HEADER_DATE
           
static String HEADER_REQUEST_LINE
          Deprecated. 
static String HEADER_REQUEST_TARGET
           
static String HEADERS
          Parameter name for the "headers" authorization parameter
static List<String> IGNORE_HEADERS
          List of headers to always exclude from signature calculation
static String KEY_ID
          Parameter name for challenge-selected SSH Public Key Fingerprint
static Challenge PREEMPTIVE_CHALLENGE
           
static String REALM
          Challenge header "realm" parameter
static Pattern RFC2617_PARAM
           
static String SCHEME
          Identifier for the Signature Authentication scheme
static String SIGNATURE
          Parameter name for the "signature" authorization parameter
 
Method Summary
static String constructRFC2617(Map<String,String> params)
           
static String constructTokensString(List<String> tokens)
           
static List<String> filterHeaders(List<String> headers)
           
static Map<String,String> parseRFC2617(String header)
           
static List<String> parseTokens(String tokens)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEME

public static final String SCHEME
Identifier for the Signature Authentication scheme

See Also:
Constant Field Values

CHALLENGE

public static final String CHALLENGE
Http response header representing a server authentication challenge

See Also:
RFC 2617: HTTP Authentication: Basic and Digest Access Authentication, Constant Field Values

REALM

public static final String REALM
Challenge header "realm" parameter

See Also:
Constant Field Values

KEY_ID

public static final String KEY_ID
Parameter name for challenge-selected SSH Public Key Fingerprint

See Also:
Constant Field Values

HEADER_REQUEST_LINE

@Deprecated
public static final String HEADER_REQUEST_LINE
Deprecated. 
replaced with request-target in draft-cavage-http-signatures-03

See Also:
Constant Field Values

HEADER_REQUEST_TARGET

public static final String HEADER_REQUEST_TARGET
See Also:
Constant Field Values

HEADER_DATE

public static final String HEADER_DATE
See Also:
Constant Field Values

DEFAULT_HEADERS

public static final List<String> DEFAULT_HEADERS

IGNORE_HEADERS

public static final List<String> IGNORE_HEADERS
List of headers to always exclude from signature calculation


AUTHORIZATION

public static final String AUTHORIZATION
Http request header representing client credentials

See Also:
RFC 2617: HTTP Authentication: Basic and Digest Access Authentication, Constant Field Values

HEADERS

public static final String HEADERS
Parameter name for the "headers" authorization parameter

See Also:
Constant Field Values

SIGNATURE

public static final String SIGNATURE
Parameter name for the "signature" authorization parameter

See Also:
Constant Field Values

ALGORITHMS

public static final String ALGORITHMS
Challenge header "algorithms" parameter

See Also:
Constant Field Values

ALGORITHM

public static final String ALGORITHM
Challenge header "algorithm" parameter

See Also:
Constant Field Values

CHARSET

public static final Charset CHARSET
Default encoding for header values.


RFC2617_PARAM

public static final Pattern RFC2617_PARAM

DEFAULT_KEY_IDENTIFIER

public static final KeyId DEFAULT_KEY_IDENTIFIER

ALL_SUPPORTED_ALGORITHMS

public static final Collection<Algorithm> ALL_SUPPORTED_ALGORITHMS

PREEMPTIVE_CHALLENGE

public static final Challenge PREEMPTIVE_CHALLENGE
Method Detail

parseTokens

public static List<String> parseTokens(String tokens)

constructTokensString

public static String constructTokensString(List<String> tokens)

parseRFC2617

public static Map<String,String> parseRFC2617(String header)

constructRFC2617

public static String constructRFC2617(Map<String,String> params)

filterHeaders

public static List<String> filterHeaders(List<String> headers)


Copyright © 2013-2014. All Rights Reserved.