Oracle Communications Services Gatekeeper Java API Reference
7.0.0.1

E96578-01

oracle.ocsg.oauth2.util
Class AuthorizationHeaderParser

java.lang.Object
  extended byoracle.ocsg.oauth2.util.AuthorizationHeaderParser
All Implemented Interfaces:
OAuthTokenPrincipal, java.security.Principal

public class AuthorizationHeaderParser
extends java.lang.Object
implements OAuthTokenPrincipal


Field Summary
 
Fields inherited from interface oracle.ocsg.oauth2.OAuthTokenPrincipal
OAUTH_BEARER_ASSERTER_TOKEN_TYPE, OAUTH_MAC_ASSERTER_TOKEN_TYPE, OAUTH2_PARAMETER_EXT, OAUTH2_PARAMETER_ID, OAUTH2_PARAMETER_MAC, OAUTH2_PARAMETER_NONCE, OAUTH2_PARAMETER_TIMESTAMP, TOKEN_TYPE_BEARER, TOKEN_TYPE_MAC
 
Constructor Summary
AuthorizationHeaderParser(java.lang.String header)
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getToken()
          Get token.
 java.util.Map getTokenParameters()
          Get token parameter map.
 java.lang.String getTokenType()
          Get token type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, implies, toString
 

Constructor Detail

AuthorizationHeaderParser

public AuthorizationHeaderParser(java.lang.String header)
                          throws OAuthWorkContextHelper.OAuthHandlingException
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal

getToken

public java.lang.String getToken()
Description copied from interface: OAuthTokenPrincipal
Get token.

Specified by:
getToken in interface OAuthTokenPrincipal
Returns:
token.

getTokenParameters

public java.util.Map getTokenParameters()
Description copied from interface: OAuthTokenPrincipal
Get token parameter map.

Specified by:
getTokenParameters in interface OAuthTokenPrincipal
Returns:
map with token parameters extracted from the token value.

getTokenType

public java.lang.String getTokenType()
Description copied from interface: OAuthTokenPrincipal
Get token type.

Specified by:
getTokenType in interface OAuthTokenPrincipal
Returns:
token type.

Oracle Communications Services Gatekeeper Java API Reference
7.0.0.1

E96578-01

Copyright © 2008, 2018, Oracle and/or its affiliates. All rights reserved.