Class QDLHeadersClaimsSource

    • Constructor Detail

      • QDLHeadersClaimsSource

        public QDLHeadersClaimsSource​(org.oa4mp.delegation.server.server.claims.ClaimSourceConfiguration configuration)
      • QDLHeadersClaimsSource

        public QDLHeadersClaimsSource()
      • QDLHeadersClaimsSource

        public QDLHeadersClaimsSource​(org.qdl_lang.variables.QDLStem stem)
    • Method Detail

      • getPrefix

        public String getPrefix()
      • setPrefix

        public void setPrefix​(String prefix)
      • isRegex

        public boolean isRegex()
      • getRegex

        public String getRegex()
      • setRegex

        public void setRegex​(String regex)
      • getOa2State

        public OA2State getOa2State()
      • setOa2State

        public void setOa2State​(OA2State oa2State)
      • hasOA2State

        public boolean hasOA2State()
      • realProcessing

        protected net.sf.json.JSONObject realProcessing​(net.sf.json.JSONObject claims,
                                                        javax.servlet.http.HttpServletRequest request,
                                                        org.oa4mp.delegation.server.ServiceTransaction transaction)
                                                 throws org.oa4mp.delegation.server.server.UnsupportedScopeException
        Note that this will filter as a prefix or as a regex depending on the configuration. Also, if a prefix, the prefix is removed, but if a regex, the key is not altered. Any found claims are added to the set of claims.
        Overrides:
        realProcessing in class BasicClaimsSourceImpl
        Parameters:
        claims -
        request -
        transaction -
        Returns:
        Throws:
        org.oa4mp.delegation.server.server.UnsupportedScopeException
      • process

        public net.sf.json.JSONObject process​(net.sf.json.JSONObject claims,
                                              org.oa4mp.delegation.server.ServiceTransaction transaction)
                                       throws org.oa4mp.delegation.server.server.UnsupportedScopeException
        Description copied from class: BasicClaimsSourceImpl
        At the most basic level, this just returns the UserInfo object passed to it. Override as you deem fit.
        Specified by:
        process in interface org.oa4mp.delegation.server.server.claims.ClaimSource
        Overrides:
        process in class BasicClaimsSourceImpl
        Throws:
        org.oa4mp.delegation.server.server.UnsupportedScopeException
      • isRunOnlyAtAuthorization

        public boolean isRunOnlyAtAuthorization()
        Description copied from class: BasicClaimsSourceImpl
        This should usually be false. It is true only for those sources that can ONLY run at authorization, such as HTTPHeaderClaimsSource, where the information is simply not available in later phases.
        Specified by:
        isRunOnlyAtAuthorization in interface org.oa4mp.delegation.server.server.claims.ClaimSource
        Overrides:
        isRunOnlyAtAuthorization in class BasicClaimsSourceImpl
      • toQDL

        public org.qdl_lang.variables.QDLStem toQDL()
        Specified by:
        toQDL in interface org.oa4mp.delegation.server.server.claims.ClaimSource
        Overrides:
        toQDL in class BasicClaimsSourceImpl
      • fromQDL

        public void fromQDL​(org.qdl_lang.variables.QDLStem arg)
        Specified by:
        fromQDL in interface org.oa4mp.delegation.server.server.claims.ClaimSource
        Overrides:
        fromQDL in class BasicClaimsSourceImpl