Package io.serverlessworkflow.api.auth
Class OauthDefinition
- java.lang.Object
-
- io.serverlessworkflow.api.auth.OauthDefinition
-
- All Implemented Interfaces:
Serializable
public class OauthDefinition extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOauthDefinition.GrantType
-
Constructor Summary
Constructors Constructor Description OauthDefinition()No args constructor for use in serializationOauthDefinition(OauthDefinition.GrantType grantType, String clientId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAudiences()Array containing strings or workflow expressions.StringgetAuthority()String or a workflow expression.StringgetClientId()String or a workflow expression.StringgetClientSecret()Workflow secret or a workflow expression.OauthDefinition.GrantTypegetGrantType()Defines the grant type (Required)Map<String,String>getMetadata()MetadataStringgetPassword()String or a workflow expression.StringgetRequestedIssuer()String or a workflow expression.StringgetRequestedSubject()String or a workflow expression.List<String>getScopes()Array containing strings or workflow expressions.StringgetSubjectToken()String or a workflow expression.StringgetUsername()String or a workflow expression.voidsetAudiences(List<String> audiences)Array containing strings or workflow expressions.voidsetAuthority(String authority)String or a workflow expression.voidsetClientId(String clientId)String or a workflow expression.voidsetClientSecret(String clientSecret)Workflow secret or a workflow expression.voidsetGrantType(OauthDefinition.GrantType grantType)Defines the grant type (Required)voidsetMetadata(Map<String,String> metadata)MetadatavoidsetPassword(String password)String or a workflow expression.voidsetRequestedIssuer(String requestedIssuer)String or a workflow expression.voidsetRequestedSubject(String requestedSubject)String or a workflow expression.voidsetScopes(List<String> scopes)Array containing strings or workflow expressions.voidsetSubjectToken(String subjectToken)String or a workflow expression.voidsetUsername(String username)String or a workflow expression.OauthDefinitionwithAudiences(List<String> audiences)OauthDefinitionwithAuthority(String authority)OauthDefinitionwithClientId(String clientId)OauthDefinitionwithClientSecret(String clientSecret)OauthDefinitionwithGrantType(OauthDefinition.GrantType grantType)OauthDefinitionwithMetadata(Map<String,String> metadata)OauthDefinitionwithPassword(String password)OauthDefinitionwithRequestedIssuer(String requestedIssuer)OauthDefinitionwithRequestedSubject(String requestedSubject)OauthDefinitionwithScopes(List<String> scopes)OauthDefinitionwithSubjectToken(String subjectToken)OauthDefinitionwithUsername(String username)
-
-
-
Constructor Detail
-
OauthDefinition
public OauthDefinition()
No args constructor for use in serialization
-
OauthDefinition
public OauthDefinition(OauthDefinition.GrantType grantType, String clientId)
- Parameters:
clientId-grantType-
-
-
Method Detail
-
getAuthority
public String getAuthority()
String or a workflow expression. Contains the authority information
-
setAuthority
public void setAuthority(String authority)
String or a workflow expression. Contains the authority information
-
withAuthority
public OauthDefinition withAuthority(String authority)
-
getGrantType
public OauthDefinition.GrantType getGrantType()
Defines the grant type (Required)
-
setGrantType
public void setGrantType(OauthDefinition.GrantType grantType)
Defines the grant type (Required)
-
withGrantType
public OauthDefinition withGrantType(OauthDefinition.GrantType grantType)
-
getClientId
public String getClientId()
String or a workflow expression. Contains the client identifier (Required)
-
setClientId
public void setClientId(String clientId)
String or a workflow expression. Contains the client identifier (Required)
-
withClientId
public OauthDefinition withClientId(String clientId)
-
getClientSecret
public String getClientSecret()
Workflow secret or a workflow expression. Contains the client secret
-
setClientSecret
public void setClientSecret(String clientSecret)
Workflow secret or a workflow expression. Contains the client secret
-
withClientSecret
public OauthDefinition withClientSecret(String clientSecret)
-
getScopes
public List<String> getScopes()
Array containing strings or workflow expressions. Contains the OAuth2 scopes
-
setScopes
public void setScopes(List<String> scopes)
Array containing strings or workflow expressions. Contains the OAuth2 scopes
-
withScopes
public OauthDefinition withScopes(List<String> scopes)
-
getUsername
public String getUsername()
String or a workflow expression. Contains the user name. Used only if grantType is 'resourceOwner'
-
setUsername
public void setUsername(String username)
String or a workflow expression. Contains the user name. Used only if grantType is 'resourceOwner'
-
withUsername
public OauthDefinition withUsername(String username)
-
getPassword
public String getPassword()
String or a workflow expression. Contains the user password. Used only if grantType is 'resourceOwner'
-
setPassword
public void setPassword(String password)
String or a workflow expression. Contains the user password. Used only if grantType is 'resourceOwner'
-
withPassword
public OauthDefinition withPassword(String password)
-
getAudiences
public List<String> getAudiences()
Array containing strings or workflow expressions. Contains the OAuth2 audiences
-
setAudiences
public void setAudiences(List<String> audiences)
Array containing strings or workflow expressions. Contains the OAuth2 audiences
-
withAudiences
public OauthDefinition withAudiences(List<String> audiences)
-
getSubjectToken
public String getSubjectToken()
String or a workflow expression. Contains the subject token
-
setSubjectToken
public void setSubjectToken(String subjectToken)
String or a workflow expression. Contains the subject token
-
withSubjectToken
public OauthDefinition withSubjectToken(String subjectToken)
-
getRequestedSubject
public String getRequestedSubject()
String or a workflow expression. Contains the requested subject
-
setRequestedSubject
public void setRequestedSubject(String requestedSubject)
String or a workflow expression. Contains the requested subject
-
withRequestedSubject
public OauthDefinition withRequestedSubject(String requestedSubject)
-
getRequestedIssuer
public String getRequestedIssuer()
String or a workflow expression. Contains the requested issuer
-
setRequestedIssuer
public void setRequestedIssuer(String requestedIssuer)
String or a workflow expression. Contains the requested issuer
-
withRequestedIssuer
public OauthDefinition withRequestedIssuer(String requestedIssuer)
-
withMetadata
public OauthDefinition withMetadata(Map<String,String> metadata)
-
-