Class GrouperOAuthCode
java.lang.Object
edu.internet2.middleware.grouper.authentication.GrouperOAuthCode
- All Implemented Interfaces:
GcSqlAssignPrimaryKey
Entity representing an issued OAuth authorization code.
Created when the user approves in the UI, consumed when the client exchanges it for a token.
Stored in the grouper_oauth_code table.
Uses GcDbAccess/GcPersistable for database access instead of Hibernate.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringtable name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanassign a new primary key for insert.getCode()longlonglongbooleanisUsed()voidvoidsetCodeChallenge(String codeChallenge) voidsetCodeChallengeMethod(String codeChallengeMethod) voidsetConsentDetails(String consentDetails) voidsetCreatedMicros(Long createdMicros) voidsetExpiresMicros(Long expiresMicros) voidsetInternalId(long internalId) voidsetIsUsedDb(String isUsedDb) voidsetMemberInternalId(long memberInternalId) voidsetOauthClientInternalId(long oauthClientInternalId) voidsetRedirectUri(String redirectUri) voidsetUsed(boolean used)
-
Field Details
-
TABLE_GROUPER_OAUTH_CODE
table name- See Also:
-
COLUMN_INTERNAL_ID
column- See Also:
-
COLUMN_CODE
column- See Also:
-
COLUMN_OAUTH_CLIENT_INTERNAL_ID
column- See Also:
-
COLUMN_REDIRECT_URI
column- See Also:
-
COLUMN_CODE_CHALLENGE
column- See Also:
-
COLUMN_CODE_CHALLENGE_METHOD
column- See Also:
-
COLUMN_MEMBER_INTERNAL_ID
column- See Also:
-
COLUMN_IS_USED
column- See Also:
-
COLUMN_CREATED_MICROS
column- See Also:
-
COLUMN_EXPIRES_MICROS
column- See Also:
-
COLUMN_CONSENT_DETAILS
column- See Also:
-
-
Constructor Details
-
GrouperOAuthCode
public GrouperOAuthCode()
-
-
Method Details
-
gcSqlAssignNewPrimaryKeyForInsert
public boolean gcSqlAssignNewPrimaryKeyForInsert()Description copied from interface:GcSqlAssignPrimaryKeyassign a new primary key for insert. return true if assigned (insert) or false if not needed- Specified by:
gcSqlAssignNewPrimaryKeyForInsertin interfaceGcSqlAssignPrimaryKey- See Also:
-
getInternalId
public long getInternalId()- Returns:
- the internalId
-
setInternalId
public void setInternalId(long internalId) - Parameters:
internalId- the internalId to set
-
getCode
- Returns:
- the code
-
setCode
- Parameters:
code- the code to set
-
getOauthClientInternalId
public long getOauthClientInternalId()- Returns:
- the oauthClientInternalId
-
setOauthClientInternalId
public void setOauthClientInternalId(long oauthClientInternalId) - Parameters:
oauthClientInternalId- the oauthClientInternalId to set
-
getRedirectUri
- Returns:
- the redirectUri
-
setRedirectUri
- Parameters:
redirectUri- the redirectUri to set
-
getCodeChallenge
- Returns:
- the codeChallenge
-
setCodeChallenge
- Parameters:
codeChallenge- the codeChallenge to set
-
getCodeChallengeMethod
- Returns:
- the codeChallengeMethod
-
setCodeChallengeMethod
- Parameters:
codeChallengeMethod- the codeChallengeMethod to set
-
getMemberInternalId
public long getMemberInternalId()- Returns:
- the memberInternalId
-
setMemberInternalId
public void setMemberInternalId(long memberInternalId) - Parameters:
memberInternalId- the memberInternalId to set
-
getIsUsedDb
- Returns:
- the isUsedDb
-
setIsUsedDb
- Parameters:
isUsedDb- the isUsedDb to set
-
isUsed
public boolean isUsed()- Returns:
- the used
-
setUsed
public void setUsed(boolean used) - Parameters:
used- the used to set
-
getCreatedMicros
- Returns:
- the createdMicros
-
setCreatedMicros
- Parameters:
createdMicros- the createdMicros to set
-
getExpiresMicros
- Returns:
- the expiresMicros
-
setExpiresMicros
- Parameters:
expiresMicros- the expiresMicros to set
-
getConsentDetails
- Returns:
- the consentDetails JSON string
-
setConsentDetails
- Parameters:
consentDetails- the consentDetails JSON string to set
-