Class OAuth2Application
java.lang.Object
build.cursed.genapi.forgejo.model.OAuth2Application
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T10:48:29.723777+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class OAuth2Application
extends Object
OAuth2Application
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRedirectUrisItem(String redirectUrisItem) clientSecret(String clientSecret) confidentialClient(Boolean confidentialClient) created(OffsetDateTime created) booleanstatic OAuth2ApplicationCreate an instance of OAuth2Application given an JSON stringGet clientIdGet clientSecretGet confidentialClientGet createdgetId()Get idgetName()Get nameGet redirectUrisinthashCode()redirectUris(List<String> redirectUris) voidsetClientId(String clientId) voidsetClientSecret(String clientSecret) voidsetConfidentialClient(Boolean confidentialClient) voidsetCreated(OffsetDateTime created) voidvoidvoidsetRedirectUris(List<String> redirectUris) toJson()Convert an instance of OAuth2Application to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CLIENT_ID
- See Also:
-
SERIALIZED_NAME_CLIENT_SECRET
- See Also:
-
SERIALIZED_NAME_CONFIDENTIAL_CLIENT
- See Also:
-
SERIALIZED_NAME_CREATED
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_REDIRECT_URIS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OAuth2Application
public OAuth2Application()
-
-
Method Details
-
clientId
-
getClientId
Get clientId- Returns:
- clientId
-
setClientId
-
clientSecret
-
getClientSecret
Get clientSecret- Returns:
- clientSecret
-
setClientSecret
-
confidentialClient
-
getConfidentialClient
Get confidentialClient- Returns:
- confidentialClient
-
setConfidentialClient
-
created
-
getCreated
Get created- Returns:
- created
-
setCreated
-
id
-
getId
Get id- Returns:
- id
-
setId
-
name
-
getName
Get name- Returns:
- name
-
setName
-
redirectUris
-
addRedirectUrisItem
-
getRedirectUris
Get redirectUris- Returns:
- redirectUris
-
setRedirectUris
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to OAuth2Application
-
fromJson
Create an instance of OAuth2Application given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OAuth2Application
- Throws:
IOException- if the JSON string is invalid with respect to OAuth2Application
-
toJson
Convert an instance of OAuth2Application to an JSON string- Returns:
- JSON string
-