public final class JaasCredentials extends Object implements Credentials
Credentials implementation that encapsulates an existing JAAS LoginContext instance. This can be used if
ModeShape is configured to use a different JAAS realm.
ModeShape will understand this Credentials implementation because it has a getLoginContext() method that returns a
LoginContext object.
| Constructor and Description |
|---|
JaasCredentials(LoginContext loginContext)
Create a credentials that uses the supplied JAAS LoginContext for authentication and authorization.
|
public JaasCredentials(LoginContext loginContext)
loginContext - the JAAS login contextIllegalArgumentException - if the provided argument is nullpublic LoginContext getLoginContext()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.