public class OauthDefinition extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
OauthDefinition.GrantType |
| Constructor and Description |
|---|
OauthDefinition()
No args constructor for use in serialization
|
OauthDefinition(OauthDefinition.GrantType grantType,
String clientId) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAudiences()
Array containing strings or workflow expressions.
|
String |
getAuthority()
String or a workflow expression.
|
String |
getClientId()
String or a workflow expression.
|
String |
getClientSecret()
Workflow secret or a workflow expression.
|
OauthDefinition.GrantType |
getGrantType()
Defines the grant type
(Required)
|
Map<String,String> |
getMetadata()
Metadata
|
String |
getPassword()
String or a workflow expression.
|
String |
getRequestedIssuer()
String or a workflow expression.
|
String |
getRequestedSubject()
String or a workflow expression.
|
List<String> |
getScopes()
Array containing strings or workflow expressions.
|
String |
getSubjectToken()
String or a workflow expression.
|
String |
getUsername()
String or a workflow expression.
|
void |
setAudiences(List<String> audiences)
Array containing strings or workflow expressions.
|
void |
setAuthority(String authority)
String or a workflow expression.
|
void |
setClientId(String clientId)
String or a workflow expression.
|
void |
setClientSecret(String clientSecret)
Workflow secret or a workflow expression.
|
void |
setGrantType(OauthDefinition.GrantType grantType)
Defines the grant type
(Required)
|
void |
setMetadata(Map<String,String> metadata)
Metadata
|
void |
setPassword(String password)
String or a workflow expression.
|
void |
setRequestedIssuer(String requestedIssuer)
String or a workflow expression.
|
void |
setRequestedSubject(String requestedSubject)
String or a workflow expression.
|
void |
setScopes(List<String> scopes)
Array containing strings or workflow expressions.
|
void |
setSubjectToken(String subjectToken)
String or a workflow expression.
|
void |
setUsername(String username)
String or a workflow expression.
|
OauthDefinition |
withAudiences(List<String> audiences) |
OauthDefinition |
withAuthority(String authority) |
OauthDefinition |
withClientId(String clientId) |
OauthDefinition |
withClientSecret(String clientSecret) |
OauthDefinition |
withGrantType(OauthDefinition.GrantType grantType) |
OauthDefinition |
withMetadata(Map<String,String> metadata) |
OauthDefinition |
withPassword(String password) |
OauthDefinition |
withRequestedIssuer(String requestedIssuer) |
OauthDefinition |
withRequestedSubject(String requestedSubject) |
OauthDefinition |
withScopes(List<String> scopes) |
OauthDefinition |
withSubjectToken(String subjectToken) |
OauthDefinition |
withUsername(String username) |
public OauthDefinition()
public OauthDefinition(OauthDefinition.GrantType grantType, String clientId)
clientId - grantType - public String getAuthority()
public void setAuthority(String authority)
public OauthDefinition withAuthority(String authority)
public OauthDefinition.GrantType getGrantType()
public void setGrantType(OauthDefinition.GrantType grantType)
public OauthDefinition withGrantType(OauthDefinition.GrantType grantType)
public String getClientId()
public void setClientId(String clientId)
public OauthDefinition withClientId(String clientId)
public String getClientSecret()
public void setClientSecret(String clientSecret)
public OauthDefinition withClientSecret(String clientSecret)
public List<String> getScopes()
public void setScopes(List<String> scopes)
public OauthDefinition withScopes(List<String> scopes)
public String getUsername()
public void setUsername(String username)
public OauthDefinition withUsername(String username)
public String getPassword()
public void setPassword(String password)
public OauthDefinition withPassword(String password)
public List<String> getAudiences()
public void setAudiences(List<String> audiences)
public OauthDefinition withAudiences(List<String> audiences)
public String getSubjectToken()
public void setSubjectToken(String subjectToken)
public OauthDefinition withSubjectToken(String subjectToken)
public String getRequestedSubject()
public void setRequestedSubject(String requestedSubject)
public OauthDefinition withRequestedSubject(String requestedSubject)
public String getRequestedIssuer()
public void setRequestedIssuer(String requestedIssuer)
public OauthDefinition withRequestedIssuer(String requestedIssuer)
public OauthDefinition withMetadata(Map<String,String> metadata)
Copyright © 2020–2023 CNCF. All rights reserved.