Class OAuthFilter

    • Field Detail

      • CONFIG_AUTH_ADMIN_USERS

        public static final String CONFIG_AUTH_ADMIN_USERS
        The configuration key controlling the list of of admin WebID values.
        See Also:
        Constant Field Values
      • CONFIG_AUTH_REALM

        public static final String CONFIG_AUTH_REALM
        The configuration key controlling the realm used in a WWW-Authenticate header, or 'trellis' by default.
        See Also:
        Constant Field Values
      • CONFIG_AUTH_OAUTH_KEYSTORE_PATH

        public static final String CONFIG_AUTH_OAUTH_KEYSTORE_PATH
        The configuration key controlling the OAuth Keystore path.
        See Also:
        Constant Field Values
      • CONFIG_AUTH_OAUTH_KEYSTORE_CREDENTIALS

        public static final String CONFIG_AUTH_OAUTH_KEYSTORE_CREDENTIALS
        The configuration key controlling the OAuth Keystore credentials.
        See Also:
        Constant Field Values
      • CONFIG_AUTH_OAUTH_KEYSTORE_IDS

        public static final String CONFIG_AUTH_OAUTH_KEYSTORE_IDS
        The configuration key controlling the OAuth Keystore ids.
        See Also:
        Constant Field Values
      • CONFIG_AUTH_OAUTH_SHARED_SECRET

        public static final String CONFIG_AUTH_OAUTH_SHARED_SECRET
        The configuration key controlling the OAuth HMAC shared secret.
        See Also:
        Constant Field Values
      • CONFIG_AUTH_OAUTH_JWK_URL

        public static final String CONFIG_AUTH_OAUTH_JWK_URL
        The configuration key controlling the OAuth JWK URL.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OAuthFilter

        public OAuthFilter()
        Create an OAuth filter.
    • Method Detail

      • setAuthenticator

        public void setAuthenticator​(Authenticator authenticator)
        Set the authenticator to use.
        Parameters:
        authenticator - the authenticator in use
      • setChallenge

        public void setChallenge​(String challenge)
        Set the challenge text.
        Parameters:
        challenge - the challenge text
      • setAdmins

        public void setAdmins​(Set<String> admins)
        Set the admin users.
        Parameters:
        admins - the admin users