public interface HttpServerAuthenticationMechanism
Modifier and Type | Method and Description |
---|---|
default void |
dispose()
Dispose of any resources currently held by this authentication mechanism.
|
void |
evaluateRequest(HttpServerRequest request)
Evaluate the current request and attempt to authenticate if appropriate.
|
String |
getMechanismName()
Get the name of this mechanism, where appropriate this should be the IANA registered name.
|
default Object |
getNegotiatedProperty(String propertyName)
Get the property negotiated as a result of authentication.
|
default <T> T |
getNegotiationProperty(String propertyName,
Class<T> type)
Get the strongly typed property negotiated as a result of authentication.
|
String getMechanismName()
void evaluateRequest(HttpServerRequest request) throws HttpAuthenticationException
HttpServerMechanismsResponder
as required.request
- representation of the HTTP request.HttpAuthenticationException
- if there is an internal failure handling the authentication.default Object getNegotiatedProperty(String propertyName)
propertyName
- the name of the property.null
if the specified property is not available.default <T> T getNegotiationProperty(String propertyName, Class<T> type)
null
if the property is set but is of a different type.propertyName
- the name of the property.type
- the expected type of the property.null
if the specified property is not available or is of a different type..default void dispose()
Copyright © 2020 JBoss by Red Hat. All rights reserved.