public static class DefaultVOMSACService.Builder extends Object
DefaultVOMSACService
object.
The DefaultVOMSACService
parameters can be set with the appropriate methods. Example:
VOMSACService acService = new DefaultVOMSACService.Builder(certChainValidator)
.requestListener(requestListener)
.serverInfoStoreListener(serverInfoStoreListener)
.protocolListener(protocolListener)
.build();
Modifier and Type | Field and Description |
---|---|
protected VOMSProtocol |
httpProtocol
The http protocol implementation
|
protected VOMSProtocol |
legacyProtocol
The voms legacy protocol implementation
|
Constructor and Description |
---|
Builder(eu.emi.security.authn.x509.X509CertChainValidatorExt certChainValidator)
Creates a Builder for a
DefaultVOMSACService . |
protected VOMSProtocol httpProtocol
protected VOMSProtocol legacyProtocol
public Builder(eu.emi.security.authn.x509.X509CertChainValidatorExt certChainValidator)
DefaultVOMSACService
.certChainValidator
- the validator to use to setup the SSL connection and validate the certificatespublic DefaultVOMSACService.Builder requestListener(VOMSRequestListener l)
DefaultVOMSACService
that this builder is creatingl
- the request listener that will receive notifications about request eventsDefaultVOMSACService.Builder
instancepublic DefaultVOMSACService.Builder serverInfoStoreListener(VOMSServerInfoStoreListener sl)
VOMSServerInfoStoreListener
for the DefaultVOMSACService
that this builder is creatingsl
- the store listener that will receive notifications about store eventsDefaultVOMSACService.Builder
instancepublic DefaultVOMSACService.Builder serverInfoStore(VOMSServerInfoStore sis)
VOMSServerInfoStore
for the DefaultVOMSACService
that this builder is creatingsis
- a VOMSServerInfoStore
objectDefaultVOMSACService.Builder
instancepublic DefaultVOMSACService.Builder protocolListener(VOMSProtocolListener pl)
VOMSProtocolListener
for the DefaultVOMSACService
that this builder is creatingpl
- the VOMSProtocolListener
that will receive notifications about protocol eventsDefaultVOMSACService.Builder
instancepublic DefaultVOMSACService.Builder connectTimeout(int timeout)
DefaultVOMSACService
that this builder is creatingtimeout
- the timeout value in millisecondsDefaultVOMSACService.Builder
instancepublic DefaultVOMSACService.Builder readTimeout(int timeout)
DefaultVOMSACService
that this builder is creatingtimeout
- the timeout value in millisecondsDefaultVOMSACService.Builder
instancepublic DefaultVOMSACService.Builder vomsesLookupStrategy(VOMSESLookupStrategy strategy)
DefaultVOMSACService
that this builder is creatingstrategy
- the VOMSESLookupStrategy
objectDefaultVOMSACService.Builder
instancepublic DefaultVOMSACService.Builder vomsesLocations(List<String> vomsesLocations)
VOMSESLookupStrategy
for the DefaultVOMSACService
that
this builder is creatingvomsesLocations
- a list of paths where vomses information will be looked forDefaultVOMSACService.Builder
instancepublic DefaultVOMSACService.Builder httpProtocol(VOMSProtocol httpProtocol)
httpProtocol
- the http protocol implementatinoDefaultVOMSACService.Builder
instancepublic DefaultVOMSACService.Builder legacyProtocol(VOMSProtocol legacyProtocol)
protected void buildServerInfoStore()
protected void buildProtocols()
public DefaultVOMSACService build()
DefaultVOMSACService
DefaultVOMSACService
configured as required by this builderCopyright © 2014. All rights reserved.