public interface ServiceProvider
| Modifier and Type | Method and Description | 
|---|---|
| void | accept(ServiceProviderVisitor visitor)Accepts a  ServiceProviderVisitorfor visits | 
| ServiceInstance | getInstance(ServiceInstanceDescriptor serviceInstanceDesc, javax.security.auth.callback.CallbackHandler cbHandler, boolean create)Returns the  ServiceInstancethat corresponds to the specifiedServiceInstanceDescriptorIf such an instance cannot be found, then a new instance is created and returned ifcreateistrueotherwisenullis returned. | 
| java.lang.String | getName()Returns the name of this service provider | 
| ServiceType[] | getSupportedServiceTypes()Returns the  ServiceInstancethat corresponds to the specified name | 
ServiceInstance getInstance(ServiceInstanceDescriptor serviceInstanceDesc, javax.security.auth.callback.CallbackHandler cbHandler, boolean create) throws JpsException
ServiceInstance that corresponds to the specified ServiceInstanceDescriptor If such an instance cannot be found, then a new instance is created and returned if create is true otherwise null is returned.serviceInstanceDesc - ServiceInstanceDescriptorcbHandler - CallbackHandler to be passed to ServiceInstancecreate - whether to create a new instance if an existing instance cannot be foundServiceInstance that corresponds to the specified ServiceInstanceDescriptor, or null if such an instance does not already exist and create is falseJpsExceptionServiceType[] getSupportedServiceTypes()
ServiceInstance that corresponds to the specified nameServiceType(s) supported by this ServiceProvidervoid accept(ServiceProviderVisitor visitor)
ServiceProviderVisitor for visitsvisitor - the visiting ServiceProviderVisitorjava.lang.String getName()