|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthenticationManager
The AuthenticationManager is responsible for validating credentials associated with principals.
Method Summary | |
---|---|
Subject |
getActiveSubject()
Deprecated. Use the JACC PolicyContextHandler using key "javax.security.auth.Subject.container" |
Principal |
getTargetPrincipal(Principal anotherDomainPrincipal,
Map<String,Object> contextMap)
Trust related usecases may require translation of a principal from another domain to the current domain An implementation of this interface may need to do a backdoor contact of the external trust provider in deriving the target principal |
boolean |
isValid(Principal principal,
Object credential)
The isValid method is invoked to see if a user identity and associated credentials as known in the operational environment are valid proof of the user identity. |
boolean |
isValid(Principal principal,
Object credential,
Subject activeSubject)
The isValid method is invoked to see if a user identity and associated credentials as known in the operational environment are valid proof of the user identity. |
Methods inherited from interface org.jboss.security.BaseSecurityManager |
---|
getSecurityDomain |
Method Detail |
---|
boolean isValid(Principal principal, Object credential)
principal
- - the user identity in the operation environmentcredential
- - the proof of user identity as known in the
operation environment
isValid(Principal, Object, Subject)
boolean isValid(Principal principal, Object credential, Subject activeSubject)
principal
- - the user identity in the operation environmentcredential
- - the proof of user identity as known in the
operation environmentactiveSubject
- - the Subject which should be populated with the
validated Subject contents. A JAAS based implementation would typically
populate the activeSubject with the LoginContext.login result.
Subject getActiveSubject()
javax.security.jacc.PolicyContextHandler#getContext(String, Object)
Principal getTargetPrincipal(Principal anotherDomainPrincipal, Map<String,Object> contextMap)
anotherDomainPrincipal
- Principal that is applicable in the other domain
(Can be null - in which case the contextMap is used
solely to derive the target principal)contextMap
- Any context information (including information on the other domain
that may be relevant in deriving the target principal). Any SAML
assertions that may be relevant can be passed here.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |