org.apache.jackrabbit.rmi.server.principal
Class ServerPrincipal
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.apache.jackrabbit.rmi.server.ServerObject
org.apache.jackrabbit.rmi.server.principal.ServerPrincipal
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, RemotePrincipal
- Direct Known Subclasses:
- ServerGroup
public class ServerPrincipal
- extends ServerObject
- implements RemotePrincipal
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
java.lang.String |
getName()
|
java.security.Principal |
getPrincipal()
Returns the Principal encapsulated in this instance. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ServerPrincipal
public ServerPrincipal(java.security.Principal principal,
RemoteAdapterFactory factory)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getName
public java.lang.String getName()
- Specified by:
getName
in interface RemotePrincipal
- See Also:
Principal.getName()
getPrincipal
public java.security.Principal getPrincipal()
- Returns the
Principal
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
Principal
encapsulated in this instance.
Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.