2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.windcentrale.internal.dto;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link AuthenticationResultResponse} is returned by Cognito after responding to an SRP challenge by a
19 * {@link RespondToAuthChallengeRequest} or when refreshing tokens using an {@link InitiateAuthRequest}.
21 * The refresh token is only provided as part of the SRP challenge response and will be empty when it is used to refresh
24 * @author Wouter Born - Initial contribution
27 public class AuthenticationResultResponse {
29 private static class AuthenticationResult {
30 public String accessToken = "";
32 public String idToken = "";
33 public String refreshToken = "";
34 public String tokenType = "";
37 private AuthenticationResult authenticationResult = new AuthenticationResult();
39 public String getAccessToken() {
40 return authenticationResult.accessToken;
43 public int getExpiresIn() {
44 return authenticationResult.expiresIn;
47 public String getIdToken() {
48 return authenticationResult.idToken;
51 public String getRefreshToken() {
52 return authenticationResult.refreshToken;
55 public String getTokenType() {
56 return authenticationResult.tokenType;