Package org.pac4j.saml.metadata.keystore
Class SAML2FileSystemKeystoreGenerator
java.lang.Object
org.pac4j.saml.metadata.keystore.BaseSAML2KeystoreGenerator
org.pac4j.saml.metadata.keystore.SAML2FileSystemKeystoreGenerator
- All Implemented Interfaces:
SAML2KeystoreGenerator
This is
SAML2FileSystemKeystoreGenerator.- Since:
- 4.0.1
- Author:
- Misagh Moayyed
-
Field Summary
Fields inherited from class org.pac4j.saml.metadata.keystore.BaseSAML2KeystoreGenerator
CERTIFICATES_PREFIX, logger, saml2Configuration -
Constructor Summary
ConstructorsConstructorDescriptionSAML2FileSystemKeystoreGenerator(SAML2Configuration configuration) Constructor for SAML2FileSystemKeystoreGenerator. -
Method Summary
Modifier and TypeMethodDescriptionretrieve()retrieve.booleanshouldGenerate.protected voidstore(KeyStore ks, X509Certificate certificate, PrivateKey privateKey) store.Methods inherited from class org.pac4j.saml.metadata.keystore.BaseSAML2KeystoreGenerator
generate
-
Constructor Details
-
SAML2FileSystemKeystoreGenerator
Constructor for SAML2FileSystemKeystoreGenerator.
- Parameters:
configuration- aSAML2Configurationobject
-
-
Method Details
-
shouldGenerate
public boolean shouldGenerate()shouldGenerate.
- Specified by:
shouldGeneratein interfaceSAML2KeystoreGenerator- Overrides:
shouldGeneratein classBaseSAML2KeystoreGenerator- Returns:
- a boolean
-
retrieve
retrieve.
- Returns:
- a
InputStreamobject - Throws:
Exception- if any.
-
store
protected void store(KeyStore ks, X509Certificate certificate, PrivateKey privateKey) throws Exception store.
- Specified by:
storein classBaseSAML2KeystoreGenerator- Parameters:
ks- aKeyStoreobjectcertificate- aX509CertificateobjectprivateKey- aPrivateKeyobject- Throws:
Exception- if any.
-