Class AbstractKeyPairGeneratorFactory

java.lang.Object
se.swedenconnect.security.credential.container.keytype.AbstractKeyPairGeneratorFactory
All Implemented Interfaces:
KeyPairGeneratorFactory
Direct Known Subclasses:
EcKeyPairGeneratorFactory, RsaKeyPairGeneratorFactory

public abstract class AbstractKeyPairGeneratorFactory extends Object implements KeyPairGeneratorFactory
Abstract base class for KeyPairGeneratorFactory.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Constructor Details

    • AbstractKeyPairGeneratorFactory

      public AbstractKeyPairGeneratorFactory(String keyType)
      Constructor.
      Parameters:
      keyType - the supported key type (see KeyGenType).
  • Method Details

    • supports

      public boolean supports(String keyType)
      Predicate telling whether this factory instance supports a particular key type (see KeyGenType).
      Specified by:
      supports in interface KeyPairGeneratorFactory
      Parameters:
      keyType - the requested key type name
      Returns:
      true if this factory instance supports the specified key type and false otherwise