org.italiangrid.voms.util
public enum NullListener extends Enum<NullListener> implements ACLookupListener, ValidationResultListener, VOMSServerInfoStoreListener, LoadCredentialsEventListener, VOMSTrustStoreStatusListener, Thread.UncaughtExceptionHandler, VOMSRequestListener, VOMSProtocolListener
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
notifyACLookupEvent(X509Certificate[] chain,
int chainLevel)
Informs that an AC is being looked for in the cert chain passed as
argument.
|
void |
notifyACParseEvent(X509Certificate[] chain,
int chainLevel)
Informs that an AC has been succesfully parsed from the cert chain passed
as argument
|
void |
notifyCertficateLookupEvent(String dir)
Informs that certificates are being looked for in the directory passed as
argument
|
void |
notifyCertificateLoadEvent(X509Certificate cert,
File f)
Informs that a VOMS AA certificate has been loaded in the store
|
void |
notifyCredentialLookup(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(String url)
Informs that a VOMS HTTP GET request is being issued for the URL passed as
argument
|
void |
notifyLegacyRequest(String xmlLegacyRequest)
Informs that a VOMS legacy request is being issued
|
void |
notifyLoadCredentialFailure(Throwable error,
String... locations)
Informs that credentials could not be loaded form the locations passed as
argument.
|
void |
notifyLoadCredentialSuccess(String... locations)
Informs that credentials have been succesfully loaded from the credentials
passed as argument.
|
void |
notifyLSCLoadEvent(LSCInfo lsc,
File f)
Informs that VOMS LSC information has been loaded in the store
|
void |
notifyLSCLookupEvent(String dir)
Informs that VOMS LSC file information is being looked for in the directory
passed as argument.
|
void |
notifyNoValidVOMSESError(List<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(String vomsesPath,
VOMSServerInfo info)
Informs that VOMSES information was succesfully loaded from a given path
|
void |
notifyVOMSESlookup(String vomsesPath)
Informs that VOMSES is being search at the path passed as argument
|
void |
notifyVOMSRequestFailure(VOMSACRequest request,
VOMSServerInfo endpoint,
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(Thread t,
Throwable e) |
static NullListener |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- 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, 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(Thread t, Throwable e)
uncaughtException
in interface Thread.UncaughtExceptionHandler
public void notifyTrustStoreUpdate(VOMSTrustStore store)
public void notifyCertficateLookupEvent(String dir)
VOMSTrustStoreStatusListener
notifyCertficateLookupEvent
in interface VOMSTrustStoreStatusListener
dir
- the directory where certificates are being looked forpublic void notifyLSCLookupEvent(String dir)
VOMSTrustStoreStatusListener
notifyLSCLookupEvent
in interface VOMSTrustStoreStatusListener
dir
- the directory where certificates are being looked forpublic void notifyCertificateLoadEvent(X509Certificate cert, 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, 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(String... locations)
LoadCredentialsEventListener
notifyCredentialLookup
in interface LoadCredentialsEventListener
locations
- the locations (as strings) where the credentials
are being searchedpublic void notifyLoadCredentialSuccess(String... locations)
LoadCredentialsEventListener
notifyLoadCredentialSuccess
in interface LoadCredentialsEventListener
locations
- the locations (as strings) where the credentials
are being searchedpublic void notifyLoadCredentialFailure(Throwable error, 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(List<String> searchedPaths)
VOMSServerInfoStoreListener
notifyNoValidVOMSESError
in interface VOMSServerInfoStoreListener
searchedPaths
- the list of searched pathspublic void notifyVOMSESlookup(String vomsesPath)
VOMSServerInfoStoreListener
notifyVOMSESlookup
in interface VOMSServerInfoStoreListener
vomsesPath
- the path where VOMSES information are being looked forpublic void notifyVOMSESInformationLoaded(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(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(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(String url)
VOMSProtocolListener
notifyHTTPRequest
in interface VOMSProtocolListener
url
- the request urlpublic void notifyLegacyRequest(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
Copyright © 2015. All rights reserved.