io.undertow.security.impl.BasicAuthenticationMechanism Java Examples

The following examples show how to use io.undertow.security.impl.BasicAuthenticationMechanism. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LogoutHandler.java    From wildfly-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
public LogoutHandler(final String realmName) {
    List<DigestAlgorithm> digestAlgorithms = Collections.singletonList(DigestAlgorithm.MD5);
    List<DigestQop> digestQops = Collections.emptyList();
    digestMechanism = new DigestAuthenticationMechanism(digestAlgorithms, digestQops, realmName, "/management",
            new SimpleNonceManager());
    fakeRealmdigestMechanism = new DigestAuthenticationMechanism(digestAlgorithms, digestQops, HIT_ESCAPE,
            "/management", new SimpleNonceManager());
    basicMechanism = new BasicAuthenticationMechanism(realmName);
    fakeRealmBasicMechanism = new BasicAuthenticationMechanism(HIT_ESCAPE);
}
 
Example #2
Source File: BasicAuthenticationTestCase.java    From quarkus-http with Apache License 2.0 4 votes vote down vote up
static AuthenticationMechanism getTestMechanism() {
    return new BasicAuthenticationMechanism("Test Realm");
}