org.apache.jackrabbit.rmi.client.principal
Class ClientPrincipal

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.principal.ClientPrincipal
All Implemented Interfaces:
Principal
Direct Known Subclasses:
ClientGroup

public class ClientPrincipal
extends Object
implements Principal

Local adapter for the JCR-RMI RemotePrincipal interface. This class makes a remote principal locally available using the Java Principal interface.

See Also:
Principal, RemotePrincipal

Constructor Summary
ClientPrincipal(RemotePrincipal p)
           
 
Method Summary
 String getName()
          
 RemotePrincipal getRemotePrincipal()
          Returns the RemotePrincipal encapsulated in this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Constructor Detail

ClientPrincipal

public ClientPrincipal(RemotePrincipal p)
Method Detail

getName

public String getName()

Specified by:
getName in interface Principal

getRemotePrincipal

public final RemotePrincipal getRemotePrincipal()
Returns the RemotePrincipal encapsulated in this instance.

NOTE: This method is intended to only be used in the JCR RMI implementation to be able to "send back" remote principals to the server for implementation of the remote JCR API.

Returns:
the RemotePrincipal encapsulated in this instance.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.