Package org.apache.qpid.server.security
Class SubjectCreator
- java.lang.Object
-
- org.apache.qpid.server.security.SubjectCreator
-
public class SubjectCreator extends Object
Creates aSubject
formed by thePrincipal
's returned from:- Authenticating using an
AuthenticationProvider
SubjectCreator is a facade to the
AuthenticationProvider
, and is intended to be the single place thatSubject
's are created in the broker. - Authenticating using an
-
-
Constructor Summary
Constructors Constructor Description SubjectCreator(AuthenticationProvider<?> authenticationProvider, Collection<GroupProvider<?>> groupProviders, NamedAddressSpace addressSpace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubjectAuthenticationResult
authenticate(SaslNegotiator saslNegotiator, byte[] response)
SubjectAuthenticationResult
createResultWithGroups(AuthenticationResult authenticationResult)
SaslNegotiator
createSaslNegotiator(String mechanism, SaslSettings saslSettings)
Subject
createSubjectWithGroups(Principal userPrincipal)
AuthenticationProvider<?>
getAuthenticationProvider()
-
-
-
Constructor Detail
-
SubjectCreator
public SubjectCreator(AuthenticationProvider<?> authenticationProvider, Collection<GroupProvider<?>> groupProviders, NamedAddressSpace addressSpace)
-
-
Method Detail
-
getAuthenticationProvider
public AuthenticationProvider<?> getAuthenticationProvider()
-
createSaslNegotiator
public SaslNegotiator createSaslNegotiator(String mechanism, SaslSettings saslSettings)
-
authenticate
public SubjectAuthenticationResult authenticate(SaslNegotiator saslNegotiator, byte[] response)
-
createResultWithGroups
public SubjectAuthenticationResult createResultWithGroups(AuthenticationResult authenticationResult)
-
-