Class GrouperOAuthCode

java.lang.Object
edu.internet2.middleware.grouper.authentication.GrouperOAuthCode
All Implemented Interfaces:
GcSqlAssignPrimaryKey

public class GrouperOAuthCode extends Object implements 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 Details

  • Constructor Details

    • GrouperOAuthCode

      public GrouperOAuthCode()
  • Method Details

    • gcSqlAssignNewPrimaryKeyForInsert

      public boolean gcSqlAssignNewPrimaryKeyForInsert()
      Description copied from interface: GcSqlAssignPrimaryKey
      assign a new primary key for insert. return true if assigned (insert) or false if not needed
      Specified by:
      gcSqlAssignNewPrimaryKeyForInsert in interface GcSqlAssignPrimaryKey
      See Also:
    • getInternalId

      public long getInternalId()
      Returns:
      the internalId
    • setInternalId

      public void setInternalId(long internalId)
      Parameters:
      internalId - the internalId to set
    • getCode

      public String getCode()
      Returns:
      the code
    • setCode

      public void setCode(String code)
      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

      public String getRedirectUri()
      Returns:
      the redirectUri
    • setRedirectUri

      public void setRedirectUri(String redirectUri)
      Parameters:
      redirectUri - the redirectUri to set
    • getCodeChallenge

      public String getCodeChallenge()
      Returns:
      the codeChallenge
    • setCodeChallenge

      public void setCodeChallenge(String codeChallenge)
      Parameters:
      codeChallenge - the codeChallenge to set
    • getCodeChallengeMethod

      public String getCodeChallengeMethod()
      Returns:
      the codeChallengeMethod
    • setCodeChallengeMethod

      public void setCodeChallengeMethod(String codeChallengeMethod)
      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

      public String getIsUsedDb()
      Returns:
      the isUsedDb
    • setIsUsedDb

      public void setIsUsedDb(String isUsedDb)
      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

      public Long getCreatedMicros()
      Returns:
      the createdMicros
    • setCreatedMicros

      public void setCreatedMicros(Long createdMicros)
      Parameters:
      createdMicros - the createdMicros to set
    • getExpiresMicros

      public Long getExpiresMicros()
      Returns:
      the expiresMicros
    • setExpiresMicros

      public void setExpiresMicros(Long expiresMicros)
      Parameters:
      expiresMicros - the expiresMicros to set
    • getConsentDetails

      public String getConsentDetails()
      Returns:
      the consentDetails JSON string
    • setConsentDetails

      public void setConsentDetails(String consentDetails)
      Parameters:
      consentDetails - the consentDetails JSON string to set