Class SecurityContextCredentials

  extended by org.jboss.dna.jcr.SecurityContextCredentials
All Implemented Interfaces:
Serializable, javax.jcr.Credentials

public final class SecurityContextCredentials
extends Object
implements javax.jcr.Credentials

Credentials implementation that wraps a DNA security context.

This class provides a means of passing security information about an authenticated user into the DNA JCR session implementation without using JAAS. This class effectively bypasses DNA's internal authentication mechanisms, so it is very important that this context be provided for authenticated users only.

See Also:
Serialized Form

Constructor Summary
SecurityContextCredentials(SecurityContext securityContext)
          Initializes the class with an existing security context.
Method Summary
 SecurityContext getSecurityContext()
          Returns the security context for this instance.
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public SecurityContextCredentials(SecurityContext securityContext)
Initializes the class with an existing security context.

securityContext - the security context; may not be null
Method Detail


public final SecurityContext getSecurityContext()
Returns the security context for this instance.

the security context for this instance; never null

Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.