Class BasicClaimsSourceImpl

    • Constructor Detail

      • BasicClaimsSourceImpl

        public BasicClaimsSourceImpl​(OA2SE oa2SE)
      • BasicClaimsSourceImpl

        public BasicClaimsSourceImpl()
      • BasicClaimsSourceImpl

        public BasicClaimsSourceImpl​(org.qdl_lang.variables.QDLStem stem)
      • BasicClaimsSourceImpl

        public BasicClaimsSourceImpl​(org.qdl_lang.variables.QDLStem stem,
                                     OA2SE oa2SE)
    • Method Detail

      • getOmitList

        public List<String> getOmitList()
        This is the list of claims from the headers to omit. In other words, this module will reject these out of hand and never return them in a claims object. This is extremely useful in not having existing claims being over-written (which can happen if something like mod_auth_openidc is acting as an intermediary and adding spurious claims.)
        Returns:
      • setOmitList

        public void setOmitList​(List<String> omitList)
      • setConfiguration

        public void setConfiguration​(ClaimSourceConfiguration configuration)
        Description copied from interface: ClaimSource
        This passes in a JSONObject that is in turn used to configure the source. It is up to the implementaton to make sense of this.
        Specified by:
        setConfiguration in interface ClaimSource
      • getOa2SE

        public OA2SE getOa2SE()
        Optionally, the service environment may be injected into a scope handler to get configuration of components, e.g.
        Returns:
      • setOa2SE

        public void setOa2SE​(OA2SE oa2SE)
      • getScopes

        public Collection<String> getScopes()
        Description copied from interface: ClaimSource
        A list of scopes that this source supports. Any scope that is not recognized by this source should be rejected.
        Specified by:
        getScopes in interface ClaimSource
        Returns:
      • setGroupHandler

        public void setGroupHandler​(GroupHandler groupHandler)
      • isRunOnlyAtAuthorization

        public boolean isRunOnlyAtAuthorization()
        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 ClaimSource
        Returns:
      • fromQDL

        public void fromQDL​(org.qdl_lang.variables.QDLStem stem)
        Description copied from interface: ClaimSource
        Deserialize this claim source from its QDL representation.
        Specified by:
        fromQDL in interface ClaimSource
      • toQDL

        public org.qdl_lang.variables.QDLStem toQDL()
        Description copied from interface: ClaimSource
        Serialize this claim source to its QDL representation.
        Specified by:
        toQDL in interface ClaimSource
        Returns:
      • addToStem

        protected void addToStem​(org.qdl_lang.variables.QDLStem stem,
                                 String key,
                                 Object value)