This project has retired. For details please refer to its Attic page.
OAuthASResponse.OAuthTokenResponseBuilder (Apache Oltu: OAuth 2.0 Implementation - Authorization Server 0.31-incubating-SNAPSHOT API)

org.apache.amber.oauth2.as.response
Class OAuthASResponse.OAuthTokenResponseBuilder

java.lang.Object
  extended by org.apache.amber.oauth2.common.message.OAuthResponse.OAuthResponseBuilder
      extended by org.apache.amber.oauth2.as.response.OAuthASResponse.OAuthTokenResponseBuilder
Enclosing class:
OAuthASResponse

public static class OAuthASResponse.OAuthTokenResponseBuilder
extends OAuthResponse.OAuthResponseBuilder


Field Summary
 
Fields inherited from class org.apache.amber.oauth2.common.message.OAuthResponse.OAuthResponseBuilder
applier, location, parameters, responseCode
 
Constructor Summary
OAuthASResponse.OAuthTokenResponseBuilder(int responseCode)
           
 
Method Summary
 OAuthASResponse.OAuthTokenResponseBuilder location(String location)
           
 OAuthASResponse.OAuthTokenResponseBuilder setAccessToken(String token)
           
 OAuthASResponse.OAuthTokenResponseBuilder setExpiresIn(String expiresIn)
           
 OAuthASResponse.OAuthTokenResponseBuilder setParam(String key, String value)
           
 OAuthASResponse.OAuthTokenResponseBuilder setRefreshToken(String refreshToken)
           
 OAuthASResponse.OAuthTokenResponseBuilder setTokenType(String tokenType)
           
 
Methods inherited from class org.apache.amber.oauth2.common.message.OAuthResponse.OAuthResponseBuilder
buildBodyMessage, buildHeaderMessage, buildJSONMessage, buildQueryMessage, setScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthASResponse.OAuthTokenResponseBuilder

public OAuthASResponse.OAuthTokenResponseBuilder(int responseCode)
Method Detail

setAccessToken

public OAuthASResponse.OAuthTokenResponseBuilder setAccessToken(String token)

setExpiresIn

public OAuthASResponse.OAuthTokenResponseBuilder setExpiresIn(String expiresIn)

setRefreshToken

public OAuthASResponse.OAuthTokenResponseBuilder setRefreshToken(String refreshToken)

setTokenType

public OAuthASResponse.OAuthTokenResponseBuilder setTokenType(String tokenType)

setParam

public OAuthASResponse.OAuthTokenResponseBuilder setParam(String key,
                                                          String value)
Overrides:
setParam in class OAuthResponse.OAuthResponseBuilder

location

public OAuthASResponse.OAuthTokenResponseBuilder location(String location)
Overrides:
location in class OAuthResponse.OAuthResponseBuilder


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.