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


public interface VOMSCore

Virtual Organisation Membership Service Core interface.

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.
 java.lang.String[] listRoles()
          Returns a list of roles that the client has, along with their associated groups.
 

Method Detail

getUser

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

Returns:
All information about the user that is known to VOMS.
Throws:
VOMSException

getAttributesAsAC

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

Parameters:
roles - Requested roles.
Returns:
A signed Attribute Certificate
Throws:
VOMSException

getAttributes

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

Parameters:
roles - Requested roles.
Returns:
List of attributes.
Throws:
VOMSException

listGroups

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

Throws:
VOMSException

listRoles

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

Throws:
VOMSException

listCapabilities

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

Throws:
VOMSException

getMajorVersionNumber

public int getMajorVersionNumber()
Returns the major version number.


getMinorVersionNumber

public int getMinorVersionNumber()
Returns the minor version number.


getPatchVersionNumber

public int getPatchVersionNumber()
Returns the patch version number.



Copyright © 2004 EU-EGEE