Package org.cryptacular.bean
Class ResourceBasedPublicKeyFactoryBean
java.lang.Object
org.cryptacular.bean.ResourceBasedPublicKeyFactoryBean
- All Implemented Interfaces:
FactoryBean<PublicKey>
Factory for creating a public key from a
Resource containing data in any of the formats supported by KeyPairUtil.readPublicKey(java.io.InputStream).- Author:
- Middleware Services
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResourceBasedPublicKeyFactoryBean(Resource resource) Creates a new resource based public key factory bean. -
Method Summary
-
Constructor Details
-
ResourceBasedPublicKeyFactoryBean
Creates a new resource based public key factory bean.- Parameters:
resource- Resource containing encoded key data.
-
-
Method Details
-
getResource
- Returns:
- Resource containing key data.
-
newInstance
- Specified by:
newInstancein interfaceFactoryBean<PublicKey>- Returns:
- New instance of the type handled by this factory.
- Throws:
EncodingExceptionStreamException
-