public class PublicKeyFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<PublicKey>
PublicKey from a Resource.
This factory bean supports DER and PEM encoded public key resources.| Modifier and Type | Field and Description |
|---|---|
private PublicKey |
key
The singleton instance of the public key produced by this factory.
|
private org.springframework.core.io.Resource |
resource
Public key resource.
|
| Constructor and Description |
|---|
PublicKeyFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setResource(org.springframework.core.io.Resource res)
Sets the public key resource.
|
private org.springframework.core.io.Resource resource
private PublicKey key
public void setResource(@Nonnull org.springframework.core.io.Resource res)
res - public key resource@Nonnull public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<PublicKey>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<PublicKey>Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.