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

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

public class ClientPrincipal
extends java.lang.Object
implements java.security.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
 java.lang.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 java.lang.String getName()

Specified by:
getName in interface java.security.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 Apache Software Foundation. All Rights Reserved.