Package org.italiangrid.voms.util
Enum NullListener
- All Implemented Interfaces:
Serializable,Comparable<NullListener>,java.lang.constant.Constable,Thread.UncaughtExceptionHandler,ACLookupListener,ValidationResultListener,LoadCredentialsEventListener,VOMSProtocolListener,VOMSRequestListener,VOMSServerInfoStoreListener,VOMSTrustStoreStatusListener
public enum NullListener
extends Enum<NullListener>
implements ACLookupListener, ValidationResultListener, VOMSServerInfoStoreListener, LoadCredentialsEventListener, VOMSTrustStoreStatusListener, Thread.UncaughtExceptionHandler, VOMSRequestListener, VOMSProtocolListener
A Singleton Listener which swallows notification.
- Author:
- andreaceccanti
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidnotifyACLookupEvent(X509Certificate[] chain, int chainLevel) Informs that an AC is being looked for in the cert chain passed as argument.voidnotifyACParseEvent(X509Certificate[] chain, int chainLevel) Informs that an AC has been succesfully parsed from the cert chain passed as argumentvoidInforms that certificates are being looked for in the directory passed as argumentvoidInforms that a VOMS AA certificate has been loaded in the storevoidnotifyCredentialLookup(String... locations) Informs that credentials are been looked for in the locations passed as argument.voidnotifyErrorsInVOMSReponse(VOMSACRequest request, VOMSServerInfo si, VOMSErrorMessage[] errors) Informs that errors were included in the VOMS response produced by a VOMS servervoidnotifyHTTPRequest(String url) Informs that a VOMS HTTP GET request is being issued for the URL passed as argumentvoidnotifyLegacyRequest(String xmlLegacyRequest) Informs that a VOMS legacy request is being issuedvoidnotifyLoadCredentialFailure(Throwable error, String... locations) Informs that credentials could not be loaded form the locations passed as argument.voidnotifyLoadCredentialSuccess(String... locations) Informs that credentials have been succesfully loaded from the credentials passed as argument.voidnotifyLSCLoadEvent(LSCInfo lsc, File f) Informs that VOMS LSC information has been loaded in the storevoidInforms that VOMS LSC file information is being looked for in the directory passed as argument.voidnotifyNoValidVOMSESError(List<String> searchedPaths) Informs that no valid VOMS information was found on the system.voidInforms that a VOMSResponse was received from a remote VOMS servervoidvoidInforms of the result of the validation of a set ofVOMSAttributevoidnotifyVOMSESInformationLoaded(String vomsesPath, VOMSServerInfo info) Informs that VOMSES information was succesfully loaded from a given pathvoidnotifyVOMSESlookup(String vomsesPath) Informs that VOMSES is being search at the path passed as argumentvoidnotifyVOMSRequestFailure(VOMSACRequest request, VOMSServerInfo endpoint, Throwable error) Informs of a VOMS request failurevoidnotifyVOMSRequestStart(VOMSACRequest request, VOMSServerInfo si) Informs of the start of a request to a VOMS servervoidnotifyVOMSRequestSuccess(VOMSACRequest request, VOMSServerInfo endpoint) Informs of the succesfull conclusion of a request to a VOMS servervoidnotifyWarningsInVOMSResponse(VOMSACRequest request, VOMSServerInfo si, VOMSWarningMessage[] warnings) Informs that warnings were included in the VOMS response produced by a VOMS servervoiduncaughtException(Thread t, Throwable e) static NullListenerReturns 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.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
notifyVOMSRequestStart
Description copied from interface:VOMSRequestListenerInforms of the start of a request to a VOMS server- Specified by:
notifyVOMSRequestStartin interfaceVOMSRequestListener- Parameters:
request- the requestsi- the VOMS server endpoint information
-
notifyVOMSRequestSuccess
Description copied from interface:VOMSRequestListenerInforms of the succesfull conclusion of a request to a VOMS server- Specified by:
notifyVOMSRequestSuccessin interfaceVOMSRequestListener- Parameters:
request- the requestendpoint- the VOMS server endpoint information
-
notifyVOMSRequestFailure
public void notifyVOMSRequestFailure(VOMSACRequest request, VOMSServerInfo endpoint, Throwable error) Description copied from interface:VOMSRequestListenerInforms of a VOMS request failure- Specified by:
notifyVOMSRequestFailurein interfaceVOMSRequestListener- Parameters:
request- the requestendpoint- the VOMS server endpoint informationerror- the error related with the failure
-
notifyErrorsInVOMSReponse
public void notifyErrorsInVOMSReponse(VOMSACRequest request, VOMSServerInfo si, VOMSErrorMessage[] errors) Description copied from interface:VOMSRequestListenerInforms that errors were included in the VOMS response produced by a VOMS server- Specified by:
notifyErrorsInVOMSReponsein interfaceVOMSRequestListener- Parameters:
request- the request related to the received responsesi- the VOMS server endpoint informationerrors- the error messages included in the response
-
notifyWarningsInVOMSResponse
public void notifyWarningsInVOMSResponse(VOMSACRequest request, VOMSServerInfo si, VOMSWarningMessage[] warnings) Description copied from interface:VOMSRequestListenerInforms that warnings were included in the VOMS response produced by a VOMS server- Specified by:
notifyWarningsInVOMSResponsein interfaceVOMSRequestListener- Parameters:
request- the request related to the received responsesi- the VOMS server endpoint informationwarnings- the warning messages included in the response
-
uncaughtException
- Specified by:
uncaughtExceptionin interfaceThread.UncaughtExceptionHandler
-
notifyTrustStoreUpdate
-
notifyCertficateLookupEvent
Description copied from interface:VOMSTrustStoreStatusListenerInforms that certificates are being looked for in the directory passed as argument- Specified by:
notifyCertficateLookupEventin interfaceVOMSTrustStoreStatusListener- Parameters:
dir- the directory where certificates are being looked for
-
notifyLSCLookupEvent
Description copied from interface:VOMSTrustStoreStatusListenerInforms that VOMS LSC file information is being looked for in the directory passed as argument.- Specified by:
notifyLSCLookupEventin interfaceVOMSTrustStoreStatusListener- Parameters:
dir- the directory where certificates are being looked for
-
notifyCertificateLoadEvent
Description copied from interface:VOMSTrustStoreStatusListenerInforms that a VOMS AA certificate has been loaded in the store- Specified by:
notifyCertificateLoadEventin interfaceVOMSTrustStoreStatusListener- Parameters:
cert- the VOMS AA certificate loadedf- the file from which the certificate has been loaded
-
notifyLSCLoadEvent
Description copied from interface:VOMSTrustStoreStatusListenerInforms that VOMS LSC information has been loaded in the store- Specified by:
notifyLSCLoadEventin interfaceVOMSTrustStoreStatusListener- Parameters:
lsc- the loaded VOMS LSC informationf- the file from which the LSC information has been loaded
-
notifyCredentialLookup
Description copied from interface:LoadCredentialsEventListenerInforms that credentials are been looked for in the locations passed as argument.- Specified by:
notifyCredentialLookupin interfaceLoadCredentialsEventListener- Parameters:
locations- the locations (as strings) where the credentials are being searched
-
notifyLoadCredentialSuccess
Description copied from interface:LoadCredentialsEventListenerInforms that credentials have been succesfully loaded from the credentials passed as argument.- Specified by:
notifyLoadCredentialSuccessin interfaceLoadCredentialsEventListener- Parameters:
locations- the locations (as strings) where the credentials are being searched
-
notifyLoadCredentialFailure
Description copied from interface:LoadCredentialsEventListenerInforms that credentials could not be loaded form the locations passed as argument.- Specified by:
notifyLoadCredentialFailurein interfaceLoadCredentialsEventListener- Parameters:
error- theThrowablethat caused the credential load operation to faillocations- the locations where the credentials where loaded from
-
notifyNoValidVOMSESError
Description copied from interface:VOMSServerInfoStoreListenerInforms that no valid VOMS information was found on the system.- Specified by:
notifyNoValidVOMSESErrorin interfaceVOMSServerInfoStoreListener- Parameters:
searchedPaths- the list of searched paths
-
notifyVOMSESlookup
Description copied from interface:VOMSServerInfoStoreListenerInforms that VOMSES is being search at the path passed as argument- Specified by:
notifyVOMSESlookupin interfaceVOMSServerInfoStoreListener- Parameters:
vomsesPath- the path where VOMSES information are being looked for
-
notifyVOMSESInformationLoaded
Description copied from interface:VOMSServerInfoStoreListenerInforms that VOMSES information was succesfully loaded from a given path- Specified by:
notifyVOMSESInformationLoadedin interfaceVOMSServerInfoStoreListener- Parameters:
vomsesPath- the path where VOMSES information was loaded frominfo- theVOMSServerInfovoms endpoint information
-
notifyValidationResult
Description copied from interface:ValidationResultListenerInforms of the result of the validation of a set ofVOMSAttribute- Specified by:
notifyValidationResultin interfaceValidationResultListener- Parameters:
result- the validation result
-
notifyACLookupEvent
Description copied from interface:ACLookupListenerInforms that an AC is being looked for in the cert chain passed as argument.- Specified by:
notifyACLookupEventin interfaceACLookupListener- Parameters:
chain- the chain where the AC is looked forchainLevel- the level in the chain where the AC is being looked for
-
notifyACParseEvent
Description copied from interface:ACLookupListenerInforms that an AC has been succesfully parsed from the cert chain passed as argument- Specified by:
notifyACParseEventin interfaceACLookupListener- Parameters:
chain- the chain from which the AC has been parsedchainLevel- the level in the chain where the AC has been parsed
-
notifyHTTPRequest
Description copied from interface:VOMSProtocolListenerInforms that a VOMS HTTP GET request is being issued for the URL passed as argument- Specified by:
notifyHTTPRequestin interfaceVOMSProtocolListener- Parameters:
url- the request url
-
notifyLegacyRequest
Description copied from interface:VOMSProtocolListenerInforms that a VOMS legacy request is being issued- Specified by:
notifyLegacyRequestin interfaceVOMSProtocolListener- Parameters:
xmlLegacyRequest- a string representation of the XML legacy request
-
notifyReceivedResponse
Description copied from interface:VOMSProtocolListenerInforms that a VOMSResponse was received from a remote VOMS server- Specified by:
notifyReceivedResponsein interfaceVOMSProtocolListener- Parameters:
r- the receivedVOMSResponse
-