public enum NullListener extends java.lang.Enum<NullListener> implements ACLookupListener, ValidationResultListener, VOMSServerInfoStoreListener, LoadCredentialsEventListener, VOMSTrustStoreStatusListener, java.lang.Thread.UncaughtExceptionHandler, VOMSRequestListener, VOMSProtocolListener
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
notifyACLookupEvent(java.security.cert.X509Certificate[] chain,
int chainLevel)
Informs that an AC is being looked for in the cert chain passed as
argument.
|
void |
notifyACParseEvent(java.security.cert.X509Certificate[] chain,
int chainLevel)
Informs that an AC has been succesfully parsed from the cert chain passed
as argument
|
void |
notifyCertficateLookupEvent(java.lang.String dir)
Informs that certificates are being looked for in the directory passed as
argument
|
void |
notifyCertificateLoadEvent(java.security.cert.X509Certificate cert,
java.io.File f)
Informs that a VOMS AA certificate has been loaded in the store
|
void |
notifyCredentialLookup(java.lang.String... locations)
Informs that credentials are been looked for in the locations passed as
argument.
|
void |
notifyErrorsInVOMSReponse(VOMSACRequest request,
VOMSServerInfo si,
VOMSErrorMessage[] errors)
Informs that errors were included in the VOMS response produced by a VOMS
server
|
void |
notifyHTTPRequest(java.lang.String url)
Informs that a VOMS HTTP GET request is being issued for the URL passed as
argument
|
void |
notifyLegacyRequest(java.lang.String xmlLegacyRequest)
Informs that a VOMS legacy request is being issued
|
void |
notifyLoadCredentialFailure(java.lang.Throwable error,
java.lang.String... locations)
Informs that credentials could not be loaded form the locations passed as
argument.
|
void |
notifyLoadCredentialSuccess(java.lang.String... locations)
Informs that credentials have been succesfully loaded from the credentials
passed as argument.
|
void |
notifyLSCLoadEvent(LSCInfo lsc,
java.io.File f)
Informs that VOMS LSC information has been loaded in the store
|
void |
notifyLSCLookupEvent(java.lang.String dir)
Informs that VOMS LSC file information is being looked for in the directory
passed as argument.
|
void |
notifyNoValidVOMSESError(java.util.List<java.lang.String> searchedPaths)
Informs that no valid VOMS information was found on the system.
|
void |
notifyReceivedResponse(VOMSResponse r)
Informs that a VOMSResponse was received from a remote VOMS server
|
void |
notifyTrustStoreUpdate(VOMSTrustStore store) |
void |
notifyValidationResult(VOMSValidationResult result)
Informs of the result of the validation of a set of
VOMSAttribute |
void |
notifyVOMSESInformationLoaded(java.lang.String vomsesPath,
VOMSServerInfo info)
Informs that VOMSES information was succesfully loaded from a given path
|
void |
notifyVOMSESlookup(java.lang.String vomsesPath)
Informs that VOMSES is being search at the path passed as argument
|
void |
notifyVOMSRequestFailure(VOMSACRequest request,
VOMSServerInfo endpoint,
java.lang.Throwable error)
Informs of a VOMS request failure
|
void |
notifyVOMSRequestStart(VOMSACRequest request,
VOMSServerInfo si)
Informs of the start of a request to a VOMS server
|
void |
notifyVOMSRequestSuccess(VOMSACRequest request,
VOMSServerInfo endpoint)
Informs of the succesfull conclusion of a request to a VOMS server
|
void |
notifyWarningsInVOMSResponse(VOMSACRequest request,
VOMSServerInfo si,
VOMSWarningMessage[] warnings)
Informs that warnings were included in the VOMS response produced by a VOMS
server
|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
static NullListener |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NullListener[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NullListener INSTANCE
public static NullListener[] values()
for (NullListener c : NullListener.values()) System.out.println(c);
public static NullListener valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void notifyVOMSRequestStart(VOMSACRequest request, VOMSServerInfo si)
VOMSRequestListener
notifyVOMSRequestStart
in interface VOMSRequestListener
request
- the requestsi
- the VOMS server endpoint informationpublic void notifyVOMSRequestSuccess(VOMSACRequest request, VOMSServerInfo endpoint)
VOMSRequestListener
notifyVOMSRequestSuccess
in interface VOMSRequestListener
request
- the requestendpoint
- the VOMS server endpoint informationpublic void notifyVOMSRequestFailure(VOMSACRequest request, VOMSServerInfo endpoint, java.lang.Throwable error)
VOMSRequestListener
notifyVOMSRequestFailure
in interface VOMSRequestListener
request
- the requestendpoint
- the VOMS server endpoint informationerror
- the error related with the failurepublic void notifyErrorsInVOMSReponse(VOMSACRequest request, VOMSServerInfo si, VOMSErrorMessage[] errors)
VOMSRequestListener
notifyErrorsInVOMSReponse
in interface VOMSRequestListener
request
- the request related to the received responsesi
- the VOMS server endpoint informationerrors
- the error messages included in the responsepublic void notifyWarningsInVOMSResponse(VOMSACRequest request, VOMSServerInfo si, VOMSWarningMessage[] warnings)
VOMSRequestListener
notifyWarningsInVOMSResponse
in interface VOMSRequestListener
request
- the request related to the received responsesi
- the VOMS server endpoint informationwarnings
- the warning messages included in the responsepublic void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
uncaughtException
in interface java.lang.Thread.UncaughtExceptionHandler
public void notifyTrustStoreUpdate(VOMSTrustStore store)
public void notifyCertficateLookupEvent(java.lang.String dir)
VOMSTrustStoreStatusListener
notifyCertficateLookupEvent
in interface VOMSTrustStoreStatusListener
dir
- the directory where certificates are being looked forpublic void notifyLSCLookupEvent(java.lang.String dir)
VOMSTrustStoreStatusListener
notifyLSCLookupEvent
in interface VOMSTrustStoreStatusListener
dir
- the directory where certificates are being looked forpublic void notifyCertificateLoadEvent(java.security.cert.X509Certificate cert, java.io.File f)
VOMSTrustStoreStatusListener
notifyCertificateLoadEvent
in interface VOMSTrustStoreStatusListener
cert
- the VOMS AA certificate loadedf
- the file from which the certificate has been loadedpublic void notifyLSCLoadEvent(LSCInfo lsc, java.io.File f)
VOMSTrustStoreStatusListener
notifyLSCLoadEvent
in interface VOMSTrustStoreStatusListener
lsc
- the loaded VOMS LSC informationf
- the file from which the LSC information has been loadedpublic void notifyCredentialLookup(java.lang.String... locations)
LoadCredentialsEventListener
notifyCredentialLookup
in interface LoadCredentialsEventListener
locations
- the locations (as strings) where the credentials
are being searchedpublic void notifyLoadCredentialSuccess(java.lang.String... locations)
LoadCredentialsEventListener
notifyLoadCredentialSuccess
in interface LoadCredentialsEventListener
locations
- the locations (as strings) where the credentials
are being searchedpublic void notifyLoadCredentialFailure(java.lang.Throwable error, java.lang.String... locations)
LoadCredentialsEventListener
notifyLoadCredentialFailure
in interface LoadCredentialsEventListener
error
- the Throwable
that caused the credential load operation to
faillocations
- the locations where the credentials where loaded frompublic void notifyNoValidVOMSESError(java.util.List<java.lang.String> searchedPaths)
VOMSServerInfoStoreListener
notifyNoValidVOMSESError
in interface VOMSServerInfoStoreListener
searchedPaths
- the list of searched pathspublic void notifyVOMSESlookup(java.lang.String vomsesPath)
VOMSServerInfoStoreListener
notifyVOMSESlookup
in interface VOMSServerInfoStoreListener
vomsesPath
- the path where VOMSES information are being looked forpublic void notifyVOMSESInformationLoaded(java.lang.String vomsesPath, VOMSServerInfo info)
VOMSServerInfoStoreListener
notifyVOMSESInformationLoaded
in interface VOMSServerInfoStoreListener
vomsesPath
- the path where VOMSES information was loaded frominfo
- the VOMSServerInfo
voms endpoint informationpublic void notifyValidationResult(VOMSValidationResult result)
ValidationResultListener
VOMSAttribute
notifyValidationResult
in interface ValidationResultListener
result
- the validation resultpublic void notifyACLookupEvent(java.security.cert.X509Certificate[] chain, int chainLevel)
ACLookupListener
notifyACLookupEvent
in interface ACLookupListener
chain
- the chain where the AC is looked forchainLevel
- the level in the chain where the AC is being looked forpublic void notifyACParseEvent(java.security.cert.X509Certificate[] chain, int chainLevel)
ACLookupListener
notifyACParseEvent
in interface ACLookupListener
chain
- the chain from which the AC has been parsedchainLevel
- the level in the chain where the AC has been parsedpublic void notifyHTTPRequest(java.lang.String url)
VOMSProtocolListener
notifyHTTPRequest
in interface VOMSProtocolListener
url
- the request urlpublic void notifyLegacyRequest(java.lang.String xmlLegacyRequest)
VOMSProtocolListener
notifyLegacyRequest
in interface VOMSProtocolListener
xmlLegacyRequest
- a string representation of the XML legacy requestpublic void notifyReceivedResponse(VOMSResponse r)
VOMSProtocolListener
notifyReceivedResponse
in interface VOMSProtocolListener
r
- the received VOMSResponse