Package org.pac4j.saml.metadata.keystore
Class BaseSAML2KeystoreGenerator
java.lang.Object
org.pac4j.saml.metadata.keystore.BaseSAML2KeystoreGenerator
- All Implemented Interfaces:
SAML2KeystoreGenerator
- Direct Known Subclasses:
SAML2FileSystemKeystoreGenerator,SAML2HttpUrlKeystoreGenerator
This is
BaseSAML2KeystoreGenerator.- Since:
- 4.0.1
- Author:
- Misagh Moayyed
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringConstantCERTIFICATES_PREFIX="saml-signing-cert"protected final org.slf4j.Loggerprotected final SAML2Configuration -
Constructor Summary
ConstructorsConstructorDescriptionBaseSAML2KeystoreGenerator(SAML2Configuration saml2Configuration) Constructor for BaseSAML2KeystoreGenerator. -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate()generate.booleanshouldGenerate.protected abstract voidstore(KeyStore ks, X509Certificate certificate, PrivateKey privateKey) store.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pac4j.saml.metadata.keystore.SAML2KeystoreGenerator
retrieve
-
Field Details
-
CERTIFICATES_PREFIX
ConstantCERTIFICATES_PREFIX="saml-signing-cert"- See Also:
-
logger
protected final org.slf4j.Logger logger -
saml2Configuration
-
-
Constructor Details
-
BaseSAML2KeystoreGenerator
Constructor for BaseSAML2KeystoreGenerator.
- Parameters:
saml2Configuration- aSAML2Configurationobject
-
-
Method Details
-
shouldGenerate
public boolean shouldGenerate()shouldGenerate.
- Specified by:
shouldGeneratein interfaceSAML2KeystoreGenerator- Returns:
- a boolean
-
generate
public void generate()generate.
- Specified by:
generatein interfaceSAML2KeystoreGenerator
-
store
protected abstract void store(KeyStore ks, X509Certificate certificate, PrivateKey privateKey) throws Exception store.
- Parameters:
ks- aKeyStoreobjectcertificate- aX509CertificateobjectprivateKey- aPrivateKeyobject- Throws:
Exception- if any.
-