public class SubjectCredentialsProvider extends Object implements CredentialsProvider
BASIC_AUTH_PREFIX, TOKEN_AUTH_PREFIX
Constructor and Description |
---|
SubjectCredentialsProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthorization()
Returns authorization string that shall be used for setting up
"Authorization" header for HTTP communication.
|
String |
getHeaderName()
Returns name of the HTTP header to be set with given authorization
|
protected Subject |
getSubjectFromContainer() |
protected boolean |
match(Principal principal) |
public String getHeaderName()
CredentialsProvider
getHeaderName
in interface CredentialsProvider
public String getAuthorization()
CredentialsProvider
getAuthorization
in interface CredentialsProvider
protected Subject getSubjectFromContainer()
protected boolean match(Principal principal)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.