@Deprecated public class SecurityContextCredentials extends Object implements Credentials
Credentials
implementation that wraps a ModeShape JCR security context
.
This class provides a means of passing security information about an authenticated user into the ModeShape JCR session implementation without using JAAS. This class effectively bypasses ModeShape's internal authentication mechanisms, so it is very important that this context be provided for authenticated users only.
Constructor and Description |
---|
SecurityContextCredentials(SecurityContext jcrSecurityContext)
Deprecated.
Initializes the class with an existing
JCR security context . |
Modifier and Type | Method and Description |
---|---|
SecurityContext |
getSecurityContext()
Deprecated.
Returns the
JCR security context for this instance. |
public SecurityContextCredentials(SecurityContext jcrSecurityContext)
JCR security context
.jcrSecurityContext
- the security context; may not be nullpublic final SecurityContext getSecurityContext()
JCR security context
for this instance.JCR security context
for this instance; never nullCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.