org.edg.security.voms.operation
Class GetUserQuestion

java.lang.Object
  |
  +--org.edg.security.voms.operation.QuestionHelper
        |
        +--org.edg.security.voms.operation.GetUserQuestion
All Implemented Interfaces:
Question, java.io.Serializable

public final class GetUserQuestion
extends QuestionHelper

A question for getting information about a user in the VO database.

Version:
$Name: v0_7_0 $
Author:
Karoly Lorentey
See Also:
Serialized Form

Field Summary
private static org.apache.log4j.Logger log
          Logger.
private  java.lang.String userca
          Parameter: The DN of the user's CA.
private  java.lang.String username
          Parameter: The DN of the user.
 
Fields inherited from class org.edg.security.voms.operation.QuestionHelper
cns
 
Constructor Summary
GetUserQuestion(java.lang.String username, java.lang.String userca)
           
 
Method Summary
 java.lang.Object ask()
          Do the query that this question represents, without ACL checks, and return the result as an Object.
 void checkPermission()
          Check that the current client (as specified by the current security context) has the right to ask this question.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Logger log
Logger.


username

private java.lang.String username
Parameter: The DN of the user.


userca

private java.lang.String userca
Parameter: The DN of the user's CA.

Constructor Detail

GetUserQuestion

public GetUserQuestion(java.lang.String username,
                       java.lang.String userca)
Method Detail

checkPermission

public void checkPermission()
                     throws VOMSException
Description copied from interface: Question
Check that the current client (as specified by the current security context) has the right to ask this question. The method returns normally when the access is granted. Otherwise, it throws a VOMSSecurityException.

Specified by:
checkPermission in interface Question
Overrides:
checkPermission in class QuestionHelper
VOMSException
See Also:
SecurityContext

ask

public java.lang.Object ask()
                     throws VOMSException
Description copied from interface: Question
Do the query that this question represents, without ACL checks, and return the result as an Object.

Errors must be signalled by throwing an exception.

Specified by:
ask in interface Question
Specified by:
ask in class QuestionHelper
VOMSException