@Singleton public class BasicAuthenticationMechanism extends Object implements HttpAuthenticationMechanism
HttpAuthenticationMechanism.ChallengeSender
Modifier and Type | Field and Description |
---|---|
static String |
CHARSET |
static String |
SILENT |
static String |
USER_AGENT_CHARSETS
A comma separated list of patterns and charsets.
|
Constructor and Description |
---|
BasicAuthenticationMechanism(String realmName) |
BasicAuthenticationMechanism(String realmName,
String mechanismName) |
BasicAuthenticationMechanism(String realmName,
String mechanismName,
boolean silent) |
BasicAuthenticationMechanism(String realmName,
String mechanismName,
boolean silent,
Charset charset,
Map<Pattern,Charset> userAgentCharsets) |
Modifier and Type | Method and Description |
---|---|
io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> |
authenticate(io.vertx.ext.web.RoutingContext context,
io.quarkus.security.identity.IdentityProviderManager identityProviderManager) |
io.smallrye.mutiny.Uni<ChallengeData> |
getChallenge(io.vertx.ext.web.RoutingContext context) |
HttpCredentialTransport |
getCredentialTransport()
The credential transport, used to make sure multiple incompatible mechanisms are not installed
May be null if this mechanism cannot interfere with other mechanisms
|
Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>> |
getCredentialTypes()
Returns the required credential types.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sendChallenge
public static final String SILENT
public static final String CHARSET
public static final String USER_AGENT_CHARSETS
public BasicAuthenticationMechanism(String realmName)
public BasicAuthenticationMechanism(String realmName, String mechanismName)
public BasicAuthenticationMechanism(String realmName, String mechanismName, boolean silent)
public io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> authenticate(io.vertx.ext.web.RoutingContext context, io.quarkus.security.identity.IdentityProviderManager identityProviderManager)
authenticate
in interface HttpAuthenticationMechanism
public io.smallrye.mutiny.Uni<ChallengeData> getChallenge(io.vertx.ext.web.RoutingContext context)
getChallenge
in interface HttpAuthenticationMechanism
public Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>> getCredentialTypes()
HttpAuthenticationMechanism
getCredentialTypes
in interface HttpAuthenticationMechanism
public HttpCredentialTransport getCredentialTransport()
HttpAuthenticationMechanism
getCredentialTransport
in interface HttpAuthenticationMechanism
Copyright © 2020 JBoss by Red Hat. All rights reserved.