com.unboundid.scim.sdk
Class OAuthToken

java.lang.Object
  extended by com.unboundid.scim.sdk.OAuthToken

public class OAuthToken
extends Object

This class is a holder for OAuth token types.


Nested Class Summary
static class OAuthToken.Type
          This enum defines the supported set of OAuth token types.
 
Constructor Summary
OAuthToken(OAuthToken.Type type, String tokenValue)
          Constructs a fully initialized OAuthToken.
OAuthToken(String tokenValue)
          Constructs a fully initialized OAuthToken of the Bearer variety.
 
Method Summary
 String getFormattedValue()
          Returns a formatted representation of the token type and value for use as an Authorization header value.
 String getTokenValue()
          Returns the token value.
 OAuthToken.Type getType()
          Returns the token type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthToken

public OAuthToken(String tokenValue)
Constructs a fully initialized OAuthToken of the Bearer variety.

Parameters:
tokenValue - The OAuth token value.

OAuthToken

public OAuthToken(OAuthToken.Type type,
                  String tokenValue)
Constructs a fully initialized OAuthToken.

Parameters:
type - The token Type.
tokenValue - The OAuth token value.
Method Detail

getType

public OAuthToken.Type getType()
Returns the token type.

Returns:
Get the token type.

getTokenValue

public String getTokenValue()
Returns the token value.

Returns:
Get the token value.

getFormattedValue

public String getFormattedValue()
Returns a formatted representation of the token type and value for use as an Authorization header value.

Returns:
the token type and value in HTTP header value form.


Copyright © 2011-2012 UnboundID. All Rights Reserved.