Module net.shibboleth.ext.spring
Class PublicKeyFactoryBean
- java.lang.Object
-
- net.shibboleth.ext.spring.factory.PublicKeyFactoryBean
-
- All Implemented Interfaces:
FactoryBean<PublicKey>
public class PublicKeyFactoryBean extends Object implements FactoryBean<PublicKey>
-
-
Field Summary
Fields Modifier and Type Field Description private PublicKeykeyThe singleton instance of the public key produced by this factory.private ResourceresourcePublic key resource.-
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description PublicKeyFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublicKeygetObject()Class<?>getObjectType()booleanisSingleton()voidsetResource(Resource res)Sets the public key resource.
-
-
-
Method Detail
-
setResource
public void setResource(@Nonnull Resource res)Sets the public key resource.- Parameters:
res- public key resource
-
getObject
public PublicKey getObject() throws Exception
- Specified by:
getObjectin interfaceFactoryBean<PublicKey>- Throws:
Exception
-
getObjectType
@Nonnull public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<PublicKey>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceFactoryBean<PublicKey>
-
-