Class BasicAuthenticationMechanism

    • Field Detail

      • USER_AGENT_CHARSETS

        public static final java.lang.String USER_AGENT_CHARSETS
        A comma separated list of patterns and charsets. The pattern is a regular expression. Because different browsers user different encodings this allows for the correct encoding to be selected based on the current browser. In general though it is recommended that BASIC auth not be used when passwords contain characters outside ASCII, as some browsers use the current locate to determine encoding. This list must have an even number of elements, as it is interpreted as pattern,charset,pattern,charset,...
        See Also:
        Constant Field Values
    • Constructor Detail

      • BasicAuthenticationMechanism

        public BasicAuthenticationMechanism​(java.lang.String realmName)
      • BasicAuthenticationMechanism

        public BasicAuthenticationMechanism​(java.lang.String realmName,
                                            java.lang.String mechanismName)
      • BasicAuthenticationMechanism

        public BasicAuthenticationMechanism​(java.lang.String realmName,
                                            java.lang.String mechanismName,
                                            boolean silent)
      • BasicAuthenticationMechanism

        public BasicAuthenticationMechanism​(java.lang.String realmName,
                                            java.lang.String mechanismName,
                                            boolean silent,
                                            IdentityManager identityManager)
      • BasicAuthenticationMechanism

        public BasicAuthenticationMechanism​(java.lang.String realmName,
                                            java.lang.String mechanismName,
                                            boolean silent,
                                            IdentityManager identityManager,
                                            java.nio.charset.Charset charset,
                                            java.util.Map<java.util.regex.Pattern,​java.nio.charset.Charset> userAgentCharsets)