Package org.opensaml.spring.credential
Class BasicResourceCredentialFactoryBean
java.lang.Object
net.shibboleth.shared.spring.factory.AbstractFactoryBean<T>
net.shibboleth.shared.spring.factory.AbstractComponentAwareFactoryBean<T>
org.opensaml.spring.credential.AbstractCredentialFactoryBean<BasicCredential>
org.opensaml.spring.credential.AbstractBasicCredentialFactoryBean
org.opensaml.spring.credential.BasicResourceCredentialFactoryBean
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<BasicCredential>,InitializingBean
Spring bean factory for producing a
BasicCredential from Resources.-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.spring.credential.AbstractBasicCredentialFactoryBean
AbstractBasicCredentialFactoryBean.SecretKeyEncoding -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.Loggerlog.private ResourceConfigured private key Info.private ResourceConfigured public key Info.private ResourceConfigured secret key Info.Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PrivateKeyGet the configured Private key.Get the information used to generate the private key.protected PublicKeyreturn the configured Public Key.Get the information used to generate the public key.protected SecretKeyreturn the configured Secret Key.Get the information used to generate the secret key.voidsetPrivateKeyInfo(Resource info) Set the information used to generate the private key.voidsetPublicKeyInfo(Resource info) Set the information used to generate the public key.voidsetSecretKeyInfo(Resource info) Set the information used to generate the secret key.Methods inherited from class org.opensaml.spring.credential.AbstractBasicCredentialFactoryBean
decodeSecretKey, decodeSecretKey, doCreateInstance, getObjectType, getSecretKeyAlgorithm, getSecretKeyEncoding, setSecretKeyAlgorithm, setSecretKeyEncodingMethods inherited from class org.opensaml.spring.credential.AbstractCredentialFactoryBean
getConfigDescription, getEntityID, getKeyNames, getPrivateKeyPassword, getUsageType, setConfigDescription, setEntityID, setKeyNames, setPrivateKeyPassword, setUsageTypeMethods inherited from class net.shibboleth.shared.spring.factory.AbstractComponentAwareFactoryBean
createInstance, destroyInstance, setThrowIfNullMethods inherited from class net.shibboleth.shared.spring.factory.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger loglog. -
publicKeyInfo
Configured public key Info. -
privateKeyInfo
Configured private key Info. -
secretKeyInfo
Configured secret key Info.
-
-
Constructor Details
-
BasicResourceCredentialFactoryBean
public BasicResourceCredentialFactoryBean()
-
-
Method Details
-
getPublicKeyInfo
Get the information used to generate the public key.- Returns:
- Returns the info.
-
getPrivateKeyInfo
Get the information used to generate the private key.- Returns:
- Returns the info.
-
getSecretKeyInfo
Get the information used to generate the secret key.- Returns:
- Returns the info.
-
getPublicKey
return the configured Public Key.- Specified by:
getPublicKeyin classAbstractBasicCredentialFactoryBean- Returns:
- the key, or none if not configured.
-
getPrivateKey
Get the configured Private key.- Specified by:
getPrivateKeyin classAbstractBasicCredentialFactoryBean- Returns:
- the key or null if non configured
-
getSecretKey
return the configured Secret Key.- Specified by:
getSecretKeyin classAbstractBasicCredentialFactoryBean- Returns:
- the key, or none if not configured.
-