Class BasicWhitelistBlacklistConfiguration

    • Field Detail

      • DEFAULT_PRECEDENCE

        public static final org.opensaml.xmlsec.WhitelistBlacklistConfiguration.Precedence DEFAULT_PRECEDENCE
        Default precedence.
      • whitelistMerge

        private boolean whitelistMerge
        Whitelist merge flag.
      • blacklistMerge

        private boolean blacklistMerge
        Blacklist merge flag.
      • precedence

        private org.opensaml.xmlsec.WhitelistBlacklistConfiguration.Precedence precedence
        Precedence flag.
    • Constructor Detail

      • BasicWhitelistBlacklistConfiguration

        public BasicWhitelistBlacklistConfiguration()
        Constructor.
    • Method Detail

      • getWhitelistedAlgorithms

        @Nonnull
        @NonnullElements
        @NotLive
        @Unmodifiable
        public Collection<String> getWhitelistedAlgorithms()
        Get the list of whitelisted algorithm URI's.
        Specified by:
        getWhitelistedAlgorithms in interface org.opensaml.xmlsec.WhitelistBlacklistConfiguration
        Returns:
        the list of algorithms
      • setWhitelistedAlgorithms

        public void setWhitelistedAlgorithms​(@Nullable
                                             Collection<String> uris)
        Set the list of whitelisted algorithm URI's.
        Parameters:
        uris - the list of algorithms
      • isWhitelistMerge

        public boolean isWhitelistMerge()

        Defaults to: false.

        Specified by:
        isWhitelistMerge in interface org.opensaml.xmlsec.WhitelistBlacklistConfiguration
      • setWhitelistMerge

        public void setWhitelistMerge​(boolean flag)
        Set the flag indicating whether to merge this configuration's whitelist with one of a lower order of precedence, or to treat this whitelist as authoritative.

        Defaults to: false

        Parameters:
        flag - true if should merge, false otherwise
      • getBlacklistedAlgorithms

        @Nonnull
        @NonnullElements
        @NotLive
        @Unmodifiable
        public Collection<String> getBlacklistedAlgorithms()
        Get the list of blacklisted algorithm URI's.
        Specified by:
        getBlacklistedAlgorithms in interface org.opensaml.xmlsec.WhitelistBlacklistConfiguration
        Returns:
        the list of algorithms
      • setBlacklistedAlgorithms

        public void setBlacklistedAlgorithms​(@Nullable
                                             Collection<String> uris)
        Set the list of blacklisted algorithm URI's.
        Parameters:
        uris - the list of algorithms
      • isBlacklistMerge

        public boolean isBlacklistMerge()

        Defaults to: true.

        Specified by:
        isBlacklistMerge in interface org.opensaml.xmlsec.WhitelistBlacklistConfiguration
      • setBlacklistMerge

        public void setBlacklistMerge​(boolean flag)
        Set the flag indicating whether to merge this configuration's blacklist with one of a lower order of precedence, or to treat this blacklist as authoritative.

        Defaults to: true

        Parameters:
        flag - true if should merge, false otherwise
      • getWhitelistBlacklistPrecedence

        @Nonnull
        public org.opensaml.xmlsec.WhitelistBlacklistConfiguration.Precedence getWhitelistBlacklistPrecedence()
        Specified by:
        getWhitelistBlacklistPrecedence in interface org.opensaml.xmlsec.WhitelistBlacklistConfiguration
      • setWhitelistBlacklistPrecedence

        public void setWhitelistBlacklistPrecedence​(@Nonnull
                                                    org.opensaml.xmlsec.WhitelistBlacklistConfiguration.Precedence value)
        Set preference value indicating which should take precedence when both whitelist and blacklist are non-empty.
        Parameters:
        value - the precedence value