org.apache.jackrabbit.rmi.client.principal
Class ClientPrincipal
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientPrincipal
public ClientPrincipal(RemotePrincipal p)
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.