org.edg.security.voms.service.core
Interface VOMSCore

All Superinterfaces:
java.rmi.Remote

public interface VOMSCore
extends java.rmi.Remote

Virtual Organisation Membership Service Core interface.

Version:
$Id: VOMSCore.java,v 1.10 2003/08/14 15:49:27 szamcsi Exp $
Author:
Akos Frohner, Karoly Lorentey

Method Summary
 java.lang.String[] getAttributes(java.lang.String[] roles)
          Returns the user attributes as a list of strings.
 byte[] getAttributesAsAC(java.lang.String[] roles)
          Returns the user attributes as an Attribute Certificate.
 int getMajorVersionNumber()
          Returns the major version number.
 int getMinorVersionNumber()
          Returns the minor version number.
 int getPatchVersionNumber()
          Returns the patch version number.
 User getUser()
          Returns information about a user in the VOMS database.
 java.lang.String[] listCapabilities()
          Returns a list of capabilities that the client has.
 java.lang.String[] listGroups()
          Returns a list of groups that the client is a member of, including the VO group.
 QualifiedRole[] listRoles()
          Returns a list of roles that the client has, along with their associated groups.
 

Method Detail

getUser

public User getUser()
             throws java.rmi.RemoteException
Returns information about a user in the VOMS database.

Returns:
All information about the user that is known to VOMS.
java.rmi.RemoteException

getAttributesAsAC

public byte[] getAttributesAsAC(java.lang.String[] roles)
                         throws java.rmi.RemoteException
Returns the user attributes as an Attribute Certificate.

Parameters:
roles - requested role(s)
Returns:
a signed Attribute Certificate
java.rmi.RemoteException

getAttributes

public java.lang.String[] getAttributes(java.lang.String[] roles)
                                 throws java.rmi.RemoteException
Returns the user attributes as a list of strings.

Parameters:
roles - requested role(s)
Returns:
list of attributes
java.rmi.RemoteException

listGroups

public java.lang.String[] listGroups()
                              throws java.rmi.RemoteException
Returns a list of groups that the client is a member of, including the VO group.

java.rmi.RemoteException

listRoles

public QualifiedRole[] listRoles()
                          throws java.rmi.RemoteException
Returns a list of roles that the client has, along with their associated groups.

java.rmi.RemoteException

listCapabilities

public java.lang.String[] listCapabilities()
                                    throws java.rmi.RemoteException
Returns a list of capabilities that the client has.

java.rmi.RemoteException

getMajorVersionNumber

public int getMajorVersionNumber()
                          throws java.rmi.RemoteException
Returns the major version number.

java.rmi.RemoteException

getMinorVersionNumber

public int getMinorVersionNumber()
                          throws java.rmi.RemoteException
Returns the minor version number.

java.rmi.RemoteException

getPatchVersionNumber

public int getPatchVersionNumber()
                          throws java.rmi.RemoteException
Returns the patch version number.

java.rmi.RemoteException