IT. Expert System.

Android Reference

Provider.Service


java.security

Class Provider.Service

  • Enclosing class:
    Provider


    public static class Provider.Service
    extends Object
    Service represents a service in the Java Security infrastructure. Each service describes its type, the algorithm it implements, to which provider it belongs and other properties.
    • Constructor Detail

      • Provider.Service

        public Provider.Service(Provider provider,
                        String type,
                        String algorithm,
                        String className,
                        List<String> aliases,
                        Map<String,String> attributes)
        Constructs a new instance of Service with the given attributes.
        Parameters:
        provider - the provider to which this service belongs.
        type - the type of this service (for example KeyPairGenerator).
        algorithm - the algorithm this service implements.
        className - the name of the class implementing this service.
        aliases - List of aliases for the algorithm name, or null if the implemented algorithm has no aliases.
        attributes - Map of additional attributes, or null if this Service has no attributed.
        Throws:
        NullPointerException - if provider, type, algorithm or className is null.
    • Method Detail

      • getType

        public final String getType()
        Returns the type of this Service. For example KeyPairGenerator.
        Returns:
        the type of this Service.
      • getAlgorithm

        public final String getAlgorithm()
        Returns the name of the algorithm implemented by this Service.
        Returns:
        the name of the algorithm implemented by this Service.
      • getProvider

        public final Provider getProvider()
        Returns the Provider this Service belongs to.
        Returns:
        the Provider this Service belongs to.
      • getClassName

        public final String getClassName()
        Returns the name of the class implementing this Service.
        Returns:
        the name of the class implementing this Service.
      • getAttribute

        public final String getAttribute(String name)
        Returns the value of the attribute with the specified name.
        Parameters:
        name - the name of the attribute.
        Returns:
        the value of the attribute, or null if no attribute with the given name is set.
        Throws:
        NullPointerException - if name is null.
      • newInstance

        public Object newInstance(Object constructorParameter)
                           throws NoSuchAlgorithmException
        Creates and returns a new instance of the implementation described by this Service.
        Parameters:
        constructorParameter - the parameter that is used by the constructor, or null if the implementation does not declare a constructor parameter.
        Returns:
        a new instance of the implementation described by this Service.
        Throws:
        NoSuchAlgorithmException - if the instance could not be constructed.
        InvalidParameterException - if the implementation does not support the specified constructorParameter.
      • supportsParameter

        public boolean supportsParameter(Object parameter)
        Indicates whether this Service supports the specified constructor parameter.
        Parameters:
        parameter - the parameter to test.
        Returns:
        true if this Service supports the specified constructor parameter, false otherwise.
      • toString

        public String toString()
        Returns a string containing a concise, human-readable description of this Service.
        Overrides:
        toString in class Object
        Returns:
        a printable representation for this Service.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1543 / . Delta: 0.07096 с