Class SessionAuthenticationApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.sessionauthentication.SessionAuthenticationApi
-
public class SessionAuthenticationApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description SessionAuthenticationApi(Client client)Session authentication constructor inpackage.SessionAuthenticationApi(Client client, String baseURL)Session authentication constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationSessionResponsecreateAuthenticationSession(AuthenticationSessionRequest authenticationSessionRequest)Create a session tokenAuthenticationSessionResponsecreateAuthenticationSession(AuthenticationSessionRequest authenticationSessionRequest, RequestOptions requestOptions)Create a session token-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
SessionAuthenticationApi
public SessionAuthenticationApi(Client client)
Session authentication constructor inpackage.- Parameters:
client-Client(required)
-
SessionAuthenticationApi
public SessionAuthenticationApi(Client client, String baseURL)
Session authentication constructor inpackage. Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant.
-
-
Method Detail
-
createAuthenticationSession
public AuthenticationSessionResponse createAuthenticationSession(AuthenticationSessionRequest authenticationSessionRequest) throws ApiException, IOException
Create a session token- Parameters:
authenticationSessionRequest-AuthenticationSessionRequest(required)- Returns:
AuthenticationSessionResponse- Throws:
ApiException- if fails to make API callIOException
-
createAuthenticationSession
public AuthenticationSessionResponse createAuthenticationSession(AuthenticationSessionRequest authenticationSessionRequest, RequestOptions requestOptions) throws ApiException, IOException
Create a session token- Parameters:
authenticationSessionRequest-AuthenticationSessionRequest(required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
AuthenticationSessionResponse- Throws:
ApiException- if fails to make API callIOException
-
-