@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, waitsendChallengepublic 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 HttpAuthenticationMechanismpublic io.smallrye.mutiny.Uni<ChallengeData> getChallenge(io.vertx.ext.web.RoutingContext context)
getChallenge in interface HttpAuthenticationMechanismpublic Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>> getCredentialTypes()
HttpAuthenticationMechanismgetCredentialTypes in interface HttpAuthenticationMechanismpublic HttpCredentialTransport getCredentialTransport()
HttpAuthenticationMechanismgetCredentialTransport in interface HttpAuthenticationMechanismCopyright © 2021 JBoss by Red Hat. All rights reserved.