public class CloudCredentials extends Object
Constructor and Description |
---|
CloudCredentials(CloudCredentials cloudCredentials,
String proxyForUser)
Create proxy credentials.
|
CloudCredentials(org.springframework.security.oauth2.common.OAuth2AccessToken token)
Create credentials using a token.
|
CloudCredentials(org.springframework.security.oauth2.common.OAuth2AccessToken token,
String clientId)
Create credentials using a token.
|
CloudCredentials(org.springframework.security.oauth2.common.OAuth2AccessToken token,
String clientId,
String clientSecret)
Create credentials using a token.
|
CloudCredentials(String email,
String password)
Create credentials using email and password.
|
CloudCredentials(String email,
String password,
String clientId)
Create credentials using email, password, and client ID.
|
CloudCredentials(String email,
String password,
String clientId,
String clientSecret)
Create credentials using email, password and client ID.
|
Modifier and Type | Method and Description |
---|---|
String |
getClientId()
Get the client ID.
|
String |
getClientSecret()
Get the client secret
|
String |
getEmail()
Get the email.
|
String |
getPassword()
Get the password.
|
String |
getProxyUser()
Get the proxy user.
|
org.springframework.security.oauth2.common.OAuth2AccessToken |
getToken()
Get the token.
|
boolean |
isProxyUserSet()
Is this a proxied set of credentials?
|
CloudCredentials |
proxyForUser(String user)
Run commands as a different user.
|
public CloudCredentials(String email, String password)
email
- email to authenticate withpassword
- the passwordpublic CloudCredentials(String email, String password, String clientId)
email
- email to authenticate withpassword
- the passwordclientId
- the client ID to use for authorizationpublic CloudCredentials(String email, String password, String clientId, String clientSecret)
email
- email to authenticate withpassword
- the passwordclientId
- the client ID to use for authorizationclientSecret
- the secret for the given clientpublic CloudCredentials(org.springframework.security.oauth2.common.OAuth2AccessToken token)
token
- token to use for authorizationpublic CloudCredentials(org.springframework.security.oauth2.common.OAuth2AccessToken token, String clientId)
token
- token to use for authorizationclientId
- the client ID to use for authorizationpublic CloudCredentials(org.springframework.security.oauth2.common.OAuth2AccessToken token, String clientId, String clientSecret)
token
- token to use for authorizationclientId
- the client ID to use for authorizationclientSecret
- the password for the specified clientpublic CloudCredentials(CloudCredentials cloudCredentials, String proxyForUser)
cloudCredentials
- credentials to useproxyForUser
- user to be proxiedpublic String getEmail()
public String getPassword()
public org.springframework.security.oauth2.common.OAuth2AccessToken getToken()
public String getClientId()
public String getClientSecret()
public String getProxyUser()
public boolean isProxyUserSet()
public CloudCredentials proxyForUser(String user)
user
- the user to proxy forCopyright © 2014. All rights reserved.