|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cloudfoundry.client.lib.CloudCredentials
public class CloudCredentials
Class that encapsulates credentials used for authentication
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 proxiedMethod Detail |
---|
public 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 for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |