java.lang.Object
one.jpro.platform.auth.core.oauth2.OAuth2Options
- All Implemented Interfaces:
Options
This class represents the configuration options for OAuth2 authentication and authorization.
It encapsulates a variety of settings and parameters that are used during the OAuth2 flow,
including client credentials, token and authorization endpoints, supported response types,
and other custom configurations required for OAuth2 operations.
Instances of OAuth2Options can be customized to suit specific OAuth2 workflows,
allowing for the setup of different authentication and authorization schemes, like
authorization code flow, client credentials flow, or implicit flow. It also supports
various advanced configurations such as custom headers, JWT options, and public/secret keys.
To ensure that all necessary OAuth2 parameters are correctly configured, it provides utility
methods to validate and adjust the configurations as needed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPubSecKeys(PubSecKeyOptions pubSecKey) Adds a public and secret key option to the existing list for OAuth2 authentication.addSupportedClaim(String supportedClaim) Adds a supported claim to the existing list.addSupportedCodeChallengeMethod(String supportedCodeChallengeMethod) Adds a supported code challenge method to the existing list.addSupportedGrantType(String supportedGrantType) Adds a supported grant type to the existing list.addSupportedIdTokenSigningAlgValue(String supportedIdTokenSigningAlgValue) Adds a supported ID token signing algorithm value to the existing list.addSupportedIntrospectionEndpointAuthMethod(String supportedIntrospectionEndpointAuthMethod) Adds a supported introspection endpoint authentication method to the existing list.addSupportedRequestObjectSigningAlgValue(String supportedRequestObjectSigningAlgValue) Adds a supported request object signing algorithm value to the existing list.addSupportedResponseMode(String supportedResponseMode) Adds a supported response mode to the existing list.addSupportedResponseType(String supportedResponseType) Adds a supported response type to the existing list.addSupportedRevocationEndpointAuthMethod(String supportedRevocationEndpointAuthMethod) Adds a supported revocation endpoint authentication method to the existing list.addSupportedScope(String supportedScope) Adds a supported scope to the existing list.addSupportedSubjectType(String supportedSubjectType) Adds a supported subject type to the existing list.addSupportedTokenEndpointAuthMethod(String supportedTokenEndpointAuthMethod) Adds a supported token endpoint authentication method to the existing list.Returns the URL of the authorization server's authorization endpoint.Gets the client assertion used for OAuth2 authentication.Gets the client assertion type used in OAuth2 authentication.Gets the client ID used for OAuth2 authentication.Gets the client secret used for OAuth2 authentication.org.json.JSONObjectGets extra parameters to be sent in OAuth2 requests.getFlow()Gets the OAuth2 flow type.org.json.JSONObjectGets the custom headers to be sent in OAuth2 requests.Returns the URL of the authorization server's introspection endpoint.longGets the maximum age of the JWK set before it is refreshed.Returns the URL of the authorization server's JSON Web Key Set (JWKS) endpoint.Gets the JWT options used in OAuth2 authentication.Returns the URL of the authorization server's logout endpoint.Gets the public and secret key options used in OAuth2 authentication.Returns the URL of the authorization server's revocation endpoint.Gets the scope separator used in OAuth2 requests.getSite()Gets the site URL used in forming OAuth2 endpoints.Gets the supported claims.Gets the supported code challenge methods.Gets the supported grant types.Gets the supported ID token signing algorithm values.Gets the supported introspection endpoint authentication methods.Gets the supported request object signing algorithm values.Gets the supported response modes.Gets the supported response types.Gets the supported revocation endpoint authentication methods.Gets the supported scopes.Gets the supported subject types.Gets the supported token endpoint authentication methods.Gets the tenant identifier used in OAuth2 requests.Returns the URL of the authorization server's token endpoint.Gets the user agent string to be used in OAuth2 requests.org.json.JSONObjectGets the user information parameters.Returns the URL of the authorization server's userinfo endpoint.booleanChecks if the request parameter is supported.booleanChecks if loopback IP address is used.booleanChecks if issuer validation is enabled.booleanChecks if token verification is enabled.replaceVariables(@Nullable String path) Replaces the tenant/realm variable in the given path.setAuthorizationPath(String authorizationPath) Sets the URL of the authorization server's authorization endpoint.setClientAssertion(String clientAssertion) Sets the client assertion to be used for OAuth2 authentication.setClientAssertionType(String clientAssertionType) Sets the client assertion type to be used in OAuth2 authentication.setClientId(String clientId) Sets the client ID to be used for OAuth2 authentication.setClientSecret(String clientSecret) Sets the client secret to be used for OAuth2 authentication.setExtraParams(org.json.JSONObject extraParams) Sets extra parameters to be included in OAuth2 requests.setFlow(OAuth2Flow flow) Sets the OAuth2 flow type.setHeaders(org.json.JSONObject headers) Sets custom headers to be sent in OAuth2 requests.setIntrospectionPath(String introspectionPath) Sets the URL of the authorization server's introspection endpoint.setJwkMaxAge(long jwkMaxAge) Sets the maximum age of the JWK set before it needs to be refreshed.setJwkPath(String jwkPath) Sets the URL of the authorization server's JSON Web Key Set (JWKS) endpoint.setJWTOptions(JWTOptions jwtOptions) Sets the JWT options to be used in OAuth2 authentication.setLogoutPath(String logoutPath) Sets the URL of the authorization server's logout endpoint.setPubSecKeys(List<PubSecKeyOptions> pubSecKeys) Sets the public and secret key options to be used in OAuth2 authentication.setRevocationPath(String revocationPath) Sets the URL of the authorization server's revocation endpoint.setScopeSeparator(String scopeSeparator) Sets the scope separator to be used in OAuth2 requests.Sets the site URL to be used in forming OAuth2 endpoints.setSupportedClaims(List<String> supportedClaims) Sets the supported claims.setSupportedCodeChallengeMethods(List<String> supportedCodeChallengeMethods) Sets the supported code challenge methods.setSupportedGrantTypes(List<String> supportedGrantTypes) Sets the supported grant types.setSupportedIdTokenSigningAlgValues(List<String> supportedIdTokenSigningAlgValues) Sets the supported ID token signing algorithm values.setSupportedIntrospectionEndpointAuthMethods(List<String> supportedIntrospectionEndpointAuthMethods) Sets the supported introspection endpoint authentication methods.setSupportedRequestObjectSigningAlgValues(List<String> supportedRequestObjectSigningAlgValues) Sets the supported request object signing algorithm values.setSupportedRequestParameter(boolean supportedRequestParameter) Sets whether the request parameter is supported.setSupportedResponseModes(List<String> supportedResponseModes) Sets the supported response modes.setSupportedResponseTypes(List<String> supportedResponseTypes) Sets the supported response types.setSupportedRevocationEndpointAuthMethods(List<String> supportedRevocationEndpointAuthMethods) Sets the supported revocation endpoint authentication methods.setSupportedScopes(List<String> supportedScopes) Sets the supported scopes.setSupportedSubjectTypes(List<String> supportedSubjectTypes) Sets the supported subject types.setSupportedTokenEndpointAuthMethods(List<String> supportedTokenEndpointAuthMethods) Sets the supported token endpoint authentication methods.Sets the tenant identifier to be used in OAuth2 requests.setTokenPath(String tokenPath) Sets the URL of the authorization server's token endpoint.setUseLoopbackIpAddress(boolean useLoopbackIpAddress) Sets whether to use loopback IP address.setUserAgent(String userAgent) Sets the user agent string to be used in OAuth2 requests.setUserInfoParams(org.json.JSONObject userInfoParams) Sets the user information parameters.setUserInfoPath(String userInfoPath) Sets the URL of the authorization server's userinfo endpoint.setValidateIssuer(boolean validateIssuer) Enables or disables issuer validation.setVerifyToken(boolean verifyToken) Enables or disables token verification.org.json.JSONObjecttoJSON()Convert all configuration information to JSON format.voidvalidate()Validates the OAuth2 configuration for completeness and consistency.
-
Constructor Details
-
OAuth2Options
public OAuth2Options()Default constructor. -
OAuth2Options
Copy constructor.- Parameters:
other- the OAuth2 options to copy
-
-
Method Details
-
getFlow
Gets the OAuth2 flow type.- Returns:
- the current OAuth2 flow
-
setFlow
Sets the OAuth2 flow type.- Parameters:
flow- the OAuth2 flow to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getSupportedResponseTypes
Gets the supported response types.- Returns:
- a list of supported response types
-
setSupportedResponseTypes
Sets the supported response types.- Parameters:
supportedResponseTypes- a list of supported response types to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
addSupportedResponseType
Adds a supported response type to the existing list.- Parameters:
supportedResponseType- a supported response type to add- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getSupportedResponseModes
Gets the supported response modes.- Returns:
- a list of supported response modes
-
setSupportedResponseModes
Sets the supported response modes.- Parameters:
supportedResponseModes- a list of supported response modes to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
addSupportedResponseMode
Adds a supported response mode to the existing list.- Parameters:
supportedResponseMode- a supported response mode to add- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getSupportedGrantTypes
Gets the supported grant types.- Returns:
- a list of supported grant types
-
setSupportedGrantTypes
Sets the supported grant types.- Parameters:
supportedGrantTypes- a list of supported grant types to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
addSupportedGrantType
Adds a supported grant type to the existing list.- Parameters:
supportedGrantType- a supported grant type to add- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getSupportedSubjectTypes
Gets the supported subject types.- Returns:
- a list of supported subject types
-
setSupportedSubjectTypes
Sets the supported subject types.- Parameters:
supportedSubjectTypes- a list of supported subject types to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
addSupportedSubjectType
Adds a supported subject type to the existing list.- Parameters:
supportedSubjectType- a supported subject type to add- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getSupportedIdTokenSigningAlgValues
Gets the supported ID token signing algorithm values.- Returns:
- a list of supported ID token signing algorithm values
-
setSupportedIdTokenSigningAlgValues
public OAuth2Options setSupportedIdTokenSigningAlgValues(List<String> supportedIdTokenSigningAlgValues) Sets the supported ID token signing algorithm values.- Parameters:
supportedIdTokenSigningAlgValues- a list of supported ID token signing algorithm values to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
addSupportedIdTokenSigningAlgValue
Adds a supported ID token signing algorithm value to the existing list.- Parameters:
supportedIdTokenSigningAlgValue- a supported ID token signing algorithm value to add- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getSupportedScopes
Gets the supported scopes.- Returns:
- a list of supported scopes
-
setSupportedScopes
Sets the supported scopes.- Parameters:
supportedScopes- a list of supported scopes to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
addSupportedScope
Adds a supported scope to the existing list.- Parameters:
supportedScope- a supported scope to add- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getSupportedTokenEndpointAuthMethods
Gets the supported token endpoint authentication methods.- Returns:
- a list of supported token endpoint authentication methods
-
setSupportedTokenEndpointAuthMethods
public OAuth2Options setSupportedTokenEndpointAuthMethods(List<String> supportedTokenEndpointAuthMethods) Sets the supported token endpoint authentication methods.- Parameters:
supportedTokenEndpointAuthMethods- a list of supported token endpoint authentication methods to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
addSupportedTokenEndpointAuthMethod
Adds a supported token endpoint authentication method to the existing list.- Parameters:
supportedTokenEndpointAuthMethod- a supported token endpoint authentication method to add- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getSupportedClaims
Gets the supported claims.- Returns:
- a list of supported claims
-
setSupportedClaims
Sets the supported claims.- Parameters:
supportedClaims- a list of supported claims to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
addSupportedClaim
Adds a supported claim to the existing list.- Parameters:
supportedClaim- a supported claim to add- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getSupportedCodeChallengeMethods
Gets the supported code challenge methods.- Returns:
- a list of supported code challenge methods
-
setSupportedCodeChallengeMethods
Sets the supported code challenge methods.- Parameters:
supportedCodeChallengeMethods- a list of supported code challenge methods to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
addSupportedCodeChallengeMethod
Adds a supported code challenge method to the existing list.- Parameters:
supportedCodeChallengeMethod- a supported code challenge method to add- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getSupportedIntrospectionEndpointAuthMethods
Gets the supported introspection endpoint authentication methods.- Returns:
- a list of supported introspection endpoint authentication methods
-
setSupportedIntrospectionEndpointAuthMethods
public OAuth2Options setSupportedIntrospectionEndpointAuthMethods(List<String> supportedIntrospectionEndpointAuthMethods) Sets the supported introspection endpoint authentication methods.- Parameters:
supportedIntrospectionEndpointAuthMethods- a list of supported introspection endpoint authentication methods to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
addSupportedIntrospectionEndpointAuthMethod
public OAuth2Options addSupportedIntrospectionEndpointAuthMethod(String supportedIntrospectionEndpointAuthMethod) Adds a supported introspection endpoint authentication method to the existing list.- Parameters:
supportedIntrospectionEndpointAuthMethod- a supported introspection endpoint authentication method to add- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getSupportedRevocationEndpointAuthMethods
Gets the supported revocation endpoint authentication methods.- Returns:
- a list of supported revocation endpoint authentication methods
-
setSupportedRevocationEndpointAuthMethods
public OAuth2Options setSupportedRevocationEndpointAuthMethods(List<String> supportedRevocationEndpointAuthMethods) Sets the supported revocation endpoint authentication methods.- Parameters:
supportedRevocationEndpointAuthMethods- a list of supported revocation endpoint authentication methods to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
addSupportedRevocationEndpointAuthMethod
public OAuth2Options addSupportedRevocationEndpointAuthMethod(String supportedRevocationEndpointAuthMethod) Adds a supported revocation endpoint authentication method to the existing list.- Parameters:
supportedRevocationEndpointAuthMethod- a supported revocation endpoint authentication method to add- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
isSupportedRequestParameter
public boolean isSupportedRequestParameter()Checks if the request parameter is supported.- Returns:
trueif the request parameter is supported, otherwisefalse.
-
setSupportedRequestParameter
Sets whether the request parameter is supported.- Parameters:
supportedRequestParameter- a boolean indicating whether the request parameter is supported- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getSupportedRequestObjectSigningAlgValues
Gets the supported request object signing algorithm values.- Returns:
- a list of supported request object signing algorithm values
-
setSupportedRequestObjectSigningAlgValues
public OAuth2Options setSupportedRequestObjectSigningAlgValues(List<String> supportedRequestObjectSigningAlgValues) Sets the supported request object signing algorithm values.- Parameters:
supportedRequestObjectSigningAlgValues- a list of supported request object signing algorithm values to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
addSupportedRequestObjectSigningAlgValue
public OAuth2Options addSupportedRequestObjectSigningAlgValue(String supportedRequestObjectSigningAlgValue) Adds a supported request object signing algorithm value to the existing list.- Parameters:
supportedRequestObjectSigningAlgValue- a supported request object signing algorithm value to add- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getAuthorizationPath
Returns the URL of the authorization server's authorization endpoint.- Returns:
- a URL as a string
-
setAuthorizationPath
Sets the URL of the authorization server's authorization endpoint.- Parameters:
authorizationPath- a URL as a string
-
getTokenPath
Returns the URL of the authorization server's token endpoint.- Returns:
- a URL as a string
-
setTokenPath
Sets the URL of the authorization server's token endpoint.- Parameters:
tokenPath- a URL as a string
-
getRevocationPath
Returns the URL of the authorization server's revocation endpoint.- Returns:
- a URL as a string
-
setRevocationPath
Sets the URL of the authorization server's revocation endpoint.- Parameters:
revocationPath- a URL as a string
-
getScopeSeparator
Gets the scope separator used in OAuth2 requests.- Returns:
- the scope separator as a string
-
setScopeSeparator
Sets the scope separator to be used in OAuth2 requests.- Parameters:
scopeSeparator- the scope separator as a string- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
isVerifyToken
public boolean isVerifyToken()Checks if token verification is enabled.- Returns:
trueif token verification is enabled, otherwisefalse.
-
setVerifyToken
Enables or disables token verification.- Parameters:
verifyToken-trueto enable token verification,falseto disable it- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
isValidateIssuer
public boolean isValidateIssuer()Checks if issuer validation is enabled.- Returns:
trueif issuer validation is enabled, otherwisefalse
-
setValidateIssuer
Enables or disables issuer validation.- Parameters:
validateIssuer-trueto enable issuer validation,falseto disable it- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
isUseLoopbackIpAddress
public boolean isUseLoopbackIpAddress()Checks if loopback IP address is used.- Returns:
trueif loopback IP address is used, otherwisefalse.
-
setUseLoopbackIpAddress
Sets whether to use loopback IP address.- Parameters:
useLoopbackIpAddress-trueto use loopback IP address,falseotherwise- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getLogoutPath
Returns the URL of the authorization server's logout endpoint.- Returns:
- a URL as a string.
-
setLogoutPath
Sets the URL of the authorization server's logout endpoint.- Parameters:
logoutPath- a URL as a string- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getUserInfoPath
Returns the URL of the authorization server's userinfo endpoint.- Returns:
- a URL as a string.
-
setUserInfoPath
Sets the URL of the authorization server's userinfo endpoint.- Parameters:
userInfoPath- a URL as a string- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getUserInfoParams
public org.json.JSONObject getUserInfoParams()Gets the user information parameters.- Returns:
- a
JSONObjectcontaining user information parameters
-
setUserInfoParams
Sets the user information parameters.- Parameters:
userInfoParams- aJSONObjectcontaining user information parameters- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getIntrospectionPath
Returns the URL of the authorization server's introspection endpoint.- Returns:
- a URL as a string
-
setIntrospectionPath
Sets the URL of the authorization server's introspection endpoint.- Parameters:
introspectionPath- a URL as a string- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getJwkPath
Returns the URL of the authorization server's JSON Web Key Set (JWKS) endpoint.- Returns:
- a URL as a string
-
setJwkPath
Sets the URL of the authorization server's JSON Web Key Set (JWKS) endpoint.- Parameters:
jwkPath- a URL as a string- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getJwkMaxAge
public long getJwkMaxAge()Gets the maximum age of the JWK set before it is refreshed.- Returns:
- the maximum age in milliseconds
-
setJwkMaxAge
Sets the maximum age of the JWK set before it needs to be refreshed.- Parameters:
jwkMaxAge- the maximum age in milliseconds- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getTenant
Gets the tenant identifier used in OAuth2 requests.- Returns:
- the tenant identifier as a string
-
setTenant
Sets the tenant identifier to be used in OAuth2 requests.- Parameters:
tenant- the tenant identifier as a string- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getSite
Gets the site URL used in forming OAuth2 endpoints.- Returns:
- the site URL as a string
-
setSite
Sets the site URL to be used in forming OAuth2 endpoints.- Parameters:
site- the site URL as a string- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getClientId
Gets the client ID used for OAuth2 authentication.- Returns:
- the client ID as a string
-
setClientId
Sets the client ID to be used for OAuth2 authentication.- Parameters:
clientId- the client ID as a string- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getClientSecret
Gets the client secret used for OAuth2 authentication.- Returns:
- the client secret as a string
-
setClientSecret
Sets the client secret to be used for OAuth2 authentication.- Parameters:
clientSecret- the client secret as a string- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getClientAssertionType
Gets the client assertion type used in OAuth2 authentication.- Returns:
- the client assertion type as a string
-
setClientAssertionType
Sets the client assertion type to be used in OAuth2 authentication.- Parameters:
clientAssertionType- the client assertion type as a string- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getClientAssertion
Gets the client assertion used for OAuth2 authentication.- Returns:
- the client assertion as a string
-
setClientAssertion
Sets the client assertion to be used for OAuth2 authentication.- Parameters:
clientAssertion- the client assertion as a string- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getUserAgent
Gets the user agent string to be used in OAuth2 requests.- Returns:
- the user agent string
-
setUserAgent
Sets the user agent string to be used in OAuth2 requests.- Parameters:
userAgent- the user agent string to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getHeaders
public org.json.JSONObject getHeaders()Gets the custom headers to be sent in OAuth2 requests.- Returns:
- a
JSONObjectcontaining the custom headers
-
setHeaders
Sets custom headers to be sent in OAuth2 requests.- Parameters:
headers- aJSONObjectcontaining the custom headers to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getPubSecKeys
Gets the public and secret key options used in OAuth2 authentication.- Returns:
- a list of
PubSecKeyOptions
-
setPubSecKeys
Sets the public and secret key options to be used in OAuth2 authentication.- Parameters:
pubSecKeys- a list ofPubSecKeyOptionsto set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
addPubSecKeys
Adds a public and secret key option to the existing list for OAuth2 authentication.- Parameters:
pubSecKey- aPubSecKeyOptionsobject to add- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getJWTOptions
Gets the JWT options used in OAuth2 authentication.- Returns:
- a
JWTOptionsobject representing the JWT options
-
setJWTOptions
Sets the JWT options to be used in OAuth2 authentication.- Parameters:
jwtOptions- aJWTOptionsobject representing the JWT options to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
getExtraParams
public org.json.JSONObject getExtraParams()Gets extra parameters to be sent in OAuth2 requests.- Returns:
- a
JSONObjectcontaining the extra parameters
-
setExtraParams
Sets extra parameters to be included in OAuth2 requests.- Parameters:
extraParams- aJSONObjectcontaining the extra parameters to set- Returns:
- the current instance of
OAuth2Optionsfor method chaining
-
replaceVariables
Replaces the tenant/realm variable in the given path.- Parameters:
path- the path with potential variables- Returns:
- the path with the tenant/realm variable replaced
-
validate
Validates the OAuth2 configuration for completeness and consistency.- Throws:
IllegalStateException- if the configuration is invalid
-
toJSON
public org.json.JSONObject toJSON()Description copied from interface:OptionsConvert all configuration information to JSON format.
-