
com.sap.cloudfoundry.client.facade.oauth2.OAuth2AccessTokenWithAdditionalInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudfoundry-client-facade Show documentation
Show all versions of cloudfoundry-client-facade Show documentation
A facade of the official Cloud Foundry Java client
package com.sap.cloudfoundry.client.facade.oauth2;
import java.util.Map;
import org.springframework.security.oauth2.core.OAuth2AccessToken;
public class OAuth2AccessTokenWithAdditionalInfo {
private OAuth2AccessToken oAuth2AccessToken;
private Map additionalInfo;
public OAuth2AccessTokenWithAdditionalInfo(OAuth2AccessToken oAuth2AccessToken) {
this.oAuth2AccessToken = oAuth2AccessToken;
}
public OAuth2AccessTokenWithAdditionalInfo(OAuth2AccessToken oAuth2AccessToken, Map additionalInfo) {
this.oAuth2AccessToken = oAuth2AccessToken;
this.additionalInfo = additionalInfo;
}
public OAuth2AccessToken getOAuth2AccessToken() {
return oAuth2AccessToken;
}
public Map getAdditionalInfo() {
return additionalInfo;
}
public String getAuthorizationHeaderValue() {
return getOAuth2AccessToken().getTokenType()
.getValue()
+ " " + getOAuth2AccessToken().getTokenValue();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy