Class MAuthorizationCredential

    • Constructor Detail

      • 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 Detail

      • processToken

        public String processToken​(String code,
                                   MPInstance pinstance)
        Create or Update an Account based on the token received
        Parameters:
        code -
        pinstance -
        Returns:
        String message indicating success
      • 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:
        String message indicating success
      • 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