public interface CredentialsExtractor<C extends Credentials>
Credentials
from a WebContext
and should return null
if no credentials are present
or should throw a CredentialsException
if it cannot get it.Modifier and Type | Method and Description |
---|---|
C |
extract(WebContext context)
Extract the right credentials.
|
C extract(WebContext context) throws HttpAction, CredentialsException
CredentialsException
in case of failure.context
- the current web contextHttpAction
- requires a specific HTTP action if necessaryCredentialsException
- the credentials are invalidCopyright © 2018. All rights reserved.