Name

Provider.Service

Synopsis

This nested class represents a single service (such as a hash algorithm) provided by a security Provider. The various methods return information about the service, including the name of the implementing class.

public static class Provider.Service {
// Public Constructors
     public Service(Provider provider, String type, String algorithm, 
        String className, java.util.List<String> aliases, 
        java.util.Map<String,String> attributes);  
// Public Instance Methods
     public final String getAlgorithm( );  
     public final String getAttribute(String name);  
     public final String getClassName( );  
     public final Provider getProvider( );  
     public final String getType( );  
     public Object newInstance(Object constructorParameter) 
        throws NoSuchAlgorithmException;  
     public boolean supportsParameter(Object parameter);  
// Public Methods Overriding Object
     public String toString( );  
}

Passed To

Provider.{putService( ), removeService( )}

Returned By

Provider.getService( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.