org.apache.oltu.oauth2.jwt
Class Header

java.lang.Object
  extended by org.apache.oltu.commons.json.CustomizableEntity
      extended by org.apache.oltu.oauth2.jwt.Header

public final class Header
extends org.apache.oltu.commons.json.CustomizableEntity

Represents the Header as defined in the 6.1 section of the JWT specification.

See Also:
http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-06#section-6.1

Method Summary
 String getAlgorithm()
          Returns the alg JWT Header parameter.
 String getContentType()
          Returns the cty JWT Header parameter.
 String getType()
          Returns the typ JWT Header parameter.
 String toString()
           
 
Methods inherited from class org.apache.oltu.commons.json.CustomizableEntity
getCustomField, getCustomFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getType

public String getType()
Returns the typ JWT Header parameter.

Returns:
the typ JWT Header parameter.

getAlgorithm

public String getAlgorithm()
Returns the alg JWT Header parameter.

Returns:
the alg JWT Header parameter.

getContentType

public String getContentType()
Returns the cty JWT Header parameter.

Returns:
the cty JWT Header parameter.

toString

public String toString()
Overrides:
toString in class org.apache.oltu.commons.json.CustomizableEntity


Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.