Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 545
نمايش فراداده

Provider.Servicejava.security

Java 5.0

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( )