Class ResourceBasedPrivateKeyFactoryBean

java.lang.Object
org.cryptacular.bean.ResourceBasedPrivateKeyFactoryBean
All Implemented Interfaces:
FactoryBean<PrivateKey>

public class ResourceBasedPrivateKeyFactoryBean extends Object implements FactoryBean<PrivateKey>
Factory for reading a private from a Resource containing data in any of the formats supported by KeyPairUtil.readPrivateKey(java.io.InputStream, char[]).
Author:
Middleware Services
See Also:
  • Constructor Details

    • ResourceBasedPrivateKeyFactoryBean

      public ResourceBasedPrivateKeyFactoryBean(Resource resource)
      Creates a new instance capable of reading an unencrypted private key.
      Parameters:
      resource - Resource containing encoded key data.
    • ResourceBasedPrivateKeyFactoryBean

      public ResourceBasedPrivateKeyFactoryBean(Resource resource, String decryptionPassword)
      Creates a new instance of reading an encrypted private key.
      Parameters:
      resource - Resource containing encoded key data.
      decryptionPassword - Password-based encryption key.
  • Method Details