Class MAuthorizationCredential

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_AuthorizationCredential, I_Persistent, Evaluatee

public class MAuthorizationCredential extends X_AD_AuthorizationCredential
Authorization Credential
See Also:
  • Constructor Details

    • MAuthorizationCredential

      public MAuthorizationCredential(Properties ctx, String AD_AuthorizationCredential_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      AD_AuthorizationCredential_UU - UUID key
      trxName - Transaction
    • MAuthorizationCredential

      public MAuthorizationCredential(Properties ctx, int AD_AuthorizationCredential_ID, String trxName)
      Create empty Authorization Credential
      Parameters:
      ctx - context
      AD_AuthorizationCredential_ID - ID
      trxName - transaction
    • MAuthorizationCredential

      public MAuthorizationCredential(Properties ctx, ResultSet rs, String trxName)
      Create Authorization Credential from current row in ResultSet
      Parameters:
      ctx - context
      rs - ResultSet
      trxName - transaction
  • Method Details

    • processToken

      public String processToken(String code, MPInstance pinstance)
      Create or Update an Account based on the token received
      Parameters:
      code -
      pinstance -
      Returns:
      error message or null
    • processToken

      public String processToken(Properties ctx, String code, String paramScope, MPInstanceLog pilog)
      Create or Update an Account based on the token received
      Parameters:
      ctx -
      code -
      paramScope -
      pilog - MPInstanceLog to set the log message and record_ID, it is not saved, the caller must save it
      Returns:
      error message or null
    • getFullAuthorizationEndpoint

      public String getFullAuthorizationEndpoint(String scopes, String state)
      Get a complete Authorization end point URL with all the parameters required
      Parameters:
      scopes -
      state -
      Returns:
      authorization url
    • getAuthorizationRedirectURL

      public String getAuthorizationRedirectURL()
      Get Authorization Redirect URL parsing context variables
      Specified by:
      getAuthorizationRedirectURL in interface I_AD_AuthorizationCredential
      Overrides:
      getAuthorizationRedirectURL in class X_AD_AuthorizationCredential
      Returns:
      Authorization Redirect URL