Package net.webpdf.wsclient.openapi
Class ServerConfigOAuthProvider
- java.lang.Object
-
- net.webpdf.wsclient.openapi.ServerConfigOAuthProvider
-
public class ServerConfigOAuthProvider extends Object
Defines an Oauth2 authorization provider.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServerConfigOAuthProvider.FlowEnumSelects the [OAuth2 flow](https://datatracker.ietf.org/doc/html/rfc6749#section-1.2) used.static classServerConfigOAuthProvider.NameEnumSelects the OAuth2 provider or \"generic\", when not available in the list.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_APPLICATION_IDstatic StringJSON_PROPERTY_CLAIM_CLIENT_IDstatic StringJSON_PROPERTY_CLAIM_ROLESstatic StringJSON_PROPERTY_CLAIM_SESSION_IDstatic StringJSON_PROPERTY_CLIENT_IDstatic StringJSON_PROPERTY_DISCOVERY_URLstatic StringJSON_PROPERTY_DISPLAY_NAMEstatic StringJSON_PROPERTY_FLOWstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_LOGOUTstatic StringJSON_PROPERTY_MAX_TIME_SKEWstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_ROLE_NAME_ADMINstatic StringJSON_PROPERTY_ROLE_NAME_USERstatic StringJSON_PROPERTY_SCOPEstatic StringJSON_PROPERTY_TENANT_ID
-
Constructor Summary
Constructors Constructor Description ServerConfigOAuthProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerConfigOAuthProviderapplicationId(String applicationId)ServerConfigOAuthProviderclaimClientId(String claimClientId)ServerConfigOAuthProviderclaimRoles(String claimRoles)ServerConfigOAuthProviderclaimSessionId(String claimSessionId)ServerConfigOAuthProviderclientId(String clientId)ServerConfigOAuthProviderdiscoveryUrl(String discoveryUrl)ServerConfigOAuthProviderdisplayName(String displayName)booleanequals(Object o)ServerConfigOAuthProviderflow(ServerConfigOAuthProvider.FlowEnum flow)@Nullable StringgetApplicationId()Sets the application identifier that uniquely identifies the application (the API of this server).@Nullable StringgetClaimClientId()Sets the name of the claim (in most cases \"azp\") that contains the client ID in the token.@Nullable StringgetClaimRoles()Sets the name of the claim (in most cases \"roles\") that contains the roles in the token.@Nullable StringgetClaimSessionId()Specifies the name of the claim (in most cases \"sub\") that contains the session ID in the token.@Nullable StringgetClientId()Sets the [OAuth2 client identifier](https://datatracker.ietf.org/doc/html/rfc6749#section-2.2).@Nullable StringgetDiscoveryUrl()Sets the [discovery URL](https://datatracker.ietf.org/doc/html/rfc8414) for the OAuth2 process, where the server can find, for example, the required public signature keys for token validation.@Nullable StringgetDisplayName()The displayed name for the provider (e.g. in the portal).@Nullable ServerConfigOAuthProvider.FlowEnumgetFlow()Selects the [OAuth2 flow](https://datatracker.ietf.org/doc/html/rfc6749#section-1.2) used.@Nullable StringgetId()Sets a unique ID that uniquely identifies this provider configuration.@Nullable ServerConfigOAuthProviderLogoutgetLogout()Get logout@Nullable IntegergetMaxTimeSkew()The maximum time skew that may occur between the local time on the server and the local time of the issuer of the token.@Nullable ServerConfigOAuthProvider.NameEnumgetName()Selects the OAuth2 provider or \"generic\", when not available in the list.@Nullable StringgetRoleNameAdmin()Sets the name of the role that grants administrative rights.@Nullable StringgetRoleNameUser()Sets the name of the role that grants normal user rights.@Nullable StringgetScope()Specifies the [scope](https://datatracker.ietf.org/doc/html/rfc6749#page-23) for the OAuth2 token.@Nullable StringgetTenantId()Sets a tenant identifier for the OAuth2 request.inthashCode()ServerConfigOAuthProviderid(String id)ServerConfigOAuthProviderlogout(ServerConfigOAuthProviderLogout logout)ServerConfigOAuthProvidermaxTimeSkew(Integer maxTimeSkew)ServerConfigOAuthProvidername(ServerConfigOAuthProvider.NameEnum name)ServerConfigOAuthProviderroleNameAdmin(String roleNameAdmin)ServerConfigOAuthProviderroleNameUser(String roleNameUser)ServerConfigOAuthProviderscope(String scope)voidsetApplicationId(String applicationId)voidsetClaimClientId(String claimClientId)voidsetClaimRoles(String claimRoles)voidsetClaimSessionId(String claimSessionId)voidsetClientId(String clientId)voidsetDiscoveryUrl(String discoveryUrl)voidsetDisplayName(String displayName)voidsetFlow(ServerConfigOAuthProvider.FlowEnum flow)voidsetId(String id)voidsetLogout(ServerConfigOAuthProviderLogout logout)voidsetMaxTimeSkew(Integer maxTimeSkew)voidsetName(ServerConfigOAuthProvider.NameEnum name)voidsetRoleNameAdmin(String roleNameAdmin)voidsetRoleNameUser(String roleNameUser)voidsetScope(String scope)voidsetTenantId(String tenantId)ServerConfigOAuthProvidertenantId(String tenantId)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_APPLICATION_ID
public static final String JSON_PROPERTY_APPLICATION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CLAIM_CLIENT_ID
public static final String JSON_PROPERTY_CLAIM_CLIENT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CLAIM_ROLES
public static final String JSON_PROPERTY_CLAIM_ROLES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CLAIM_SESSION_ID
public static final String JSON_PROPERTY_CLAIM_SESSION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CLIENT_ID
public static final String JSON_PROPERTY_CLIENT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DISCOVERY_URL
public static final String JSON_PROPERTY_DISCOVERY_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DISPLAY_NAME
public static final String JSON_PROPERTY_DISPLAY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FLOW
public static final String JSON_PROPERTY_FLOW
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LOGOUT
public static final String JSON_PROPERTY_LOGOUT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MAX_TIME_SKEW
public static final String JSON_PROPERTY_MAX_TIME_SKEW
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROLE_NAME_ADMIN
public static final String JSON_PROPERTY_ROLE_NAME_ADMIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROLE_NAME_USER
public static final String JSON_PROPERTY_ROLE_NAME_USER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCOPE
public static final String JSON_PROPERTY_SCOPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TENANT_ID
public static final String JSON_PROPERTY_TENANT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
applicationId
public ServerConfigOAuthProvider applicationId(String applicationId)
-
getApplicationId
@Nullable public @Nullable String getApplicationId()
Sets the application identifier that uniquely identifies the application (the API of this server). This ID is also defined as the audience for the token to verify that the token was issued for the API dServer.- Returns:
- applicationId
-
setApplicationId
public void setApplicationId(String applicationId)
-
claimClientId
public ServerConfigOAuthProvider claimClientId(String claimClientId)
-
getClaimClientId
@Nullable public @Nullable String getClaimClientId()
Sets the name of the claim (in most cases \"azp\") that contains the client ID in the token.- Returns:
- claimClientId
-
setClaimClientId
public void setClaimClientId(String claimClientId)
-
claimRoles
public ServerConfigOAuthProvider claimRoles(String claimRoles)
-
getClaimRoles
@Nullable public @Nullable String getClaimRoles()
Sets the name of the claim (in most cases \"roles\") that contains the roles in the token.- Returns:
- claimRoles
-
setClaimRoles
public void setClaimRoles(String claimRoles)
-
claimSessionId
public ServerConfigOAuthProvider claimSessionId(String claimSessionId)
-
getClaimSessionId
@Nullable public @Nullable String getClaimSessionId()
Specifies the name of the claim (in most cases \"sub\") that contains the session ID in the token. This must be a unique identifier that uniquely identifies the authenticated client (or user).- Returns:
- claimSessionId
-
setClaimSessionId
public void setClaimSessionId(String claimSessionId)
-
clientId
public ServerConfigOAuthProvider clientId(String clientId)
-
getClientId
@Nullable public @Nullable String getClientId()
Sets the [OAuth2 client identifier](https://datatracker.ietf.org/doc/html/rfc6749#section-2.2).- Returns:
- clientId
-
setClientId
public void setClientId(String clientId)
-
discoveryUrl
public ServerConfigOAuthProvider discoveryUrl(String discoveryUrl)
-
getDiscoveryUrl
@Nullable public @Nullable String getDiscoveryUrl()
Sets the [discovery URL](https://datatracker.ietf.org/doc/html/rfc8414) for the OAuth2 process, where the server can find, for example, the required public signature keys for token validation.- Returns:
- discoveryUrl
-
setDiscoveryUrl
public void setDiscoveryUrl(String discoveryUrl)
-
displayName
public ServerConfigOAuthProvider displayName(String displayName)
-
getDisplayName
@Nullable public @Nullable String getDisplayName()
The displayed name for the provider (e.g. in the portal).- Returns:
- displayName
-
setDisplayName
public void setDisplayName(String displayName)
-
flow
public ServerConfigOAuthProvider flow(ServerConfigOAuthProvider.FlowEnum flow)
-
getFlow
@Nullable public @Nullable ServerConfigOAuthProvider.FlowEnum getFlow()
Selects the [OAuth2 flow](https://datatracker.ietf.org/doc/html/rfc6749#section-1.2) used. Depending on the flow, different settings are necessary for the provider.- Returns:
- flow
-
setFlow
public void setFlow(ServerConfigOAuthProvider.FlowEnum flow)
-
id
public ServerConfigOAuthProvider id(String id)
-
getId
@Nullable public @Nullable String getId()
Sets a unique ID that uniquely identifies this provider configuration.- Returns:
- id
-
setId
public void setId(String id)
-
logout
public ServerConfigOAuthProvider logout(ServerConfigOAuthProviderLogout logout)
-
getLogout
@Nullable public @Nullable ServerConfigOAuthProviderLogout getLogout()
Get logout- Returns:
- logout
-
setLogout
public void setLogout(ServerConfigOAuthProviderLogout logout)
-
maxTimeSkew
public ServerConfigOAuthProvider maxTimeSkew(Integer maxTimeSkew)
-
getMaxTimeSkew
@Nullable public @Nullable Integer getMaxTimeSkew()
The maximum time skew that may occur between the local time on the server and the local time of the issuer of the token.- Returns:
- maxTimeSkew
-
setMaxTimeSkew
public void setMaxTimeSkew(Integer maxTimeSkew)
-
name
public ServerConfigOAuthProvider name(ServerConfigOAuthProvider.NameEnum name)
-
getName
@Nullable public @Nullable ServerConfigOAuthProvider.NameEnum getName()
Selects the OAuth2 provider or \"generic\", when not available in the list.- Returns:
- name
-
setName
public void setName(ServerConfigOAuthProvider.NameEnum name)
-
roleNameAdmin
public ServerConfigOAuthProvider roleNameAdmin(String roleNameAdmin)
-
getRoleNameAdmin
@Nullable public @Nullable String getRoleNameAdmin()
Sets the name of the role that grants administrative rights. This allows changing the default \"admin\" value to a custom role name. This must match the content of the claim defined via \"claimRoles\".- Returns:
- roleNameAdmin
-
setRoleNameAdmin
public void setRoleNameAdmin(String roleNameAdmin)
-
roleNameUser
public ServerConfigOAuthProvider roleNameUser(String roleNameUser)
-
getRoleNameUser
@Nullable public @Nullable String getRoleNameUser()
Sets the name of the role that grants normal user rights. This allows changing the default \"user\" value to a custom role name. This must match the content of the claim defined via \"claimRoles\".- Returns:
- roleNameUser
-
setRoleNameUser
public void setRoleNameUser(String roleNameUser)
-
scope
public ServerConfigOAuthProvider scope(String scope)
-
getScope
@Nullable public @Nullable String getScope()
Specifies the [scope](https://datatracker.ietf.org/doc/html/rfc6749#page-23) for the OAuth2 token. Each separated by a space.- Returns:
- scope
-
setScope
public void setScope(String scope)
-
tenantId
public ServerConfigOAuthProvider tenantId(String tenantId)
-
getTenantId
@Nullable public @Nullable String getTenantId()
Sets a tenant identifier for the OAuth2 request. Not all providers require a tenant id.- Returns:
- tenantId
-
setTenantId
public void setTenantId(String tenantId)
-
-