public SAML2KeystoreGenerator getKeystoreGenerator() {
        if (keystoreGenerator == null) {
            if (keystoreResource instanceof UrlResource) {
                return new SAML2HttpUrlKeystoreGenerator(this);
            }
            return new SAML2FileSystemKeystoreGenerator(this);
        }
        return this.keystoreGenerator;
    }
<p>Getter for the field <code>keystoreGenerator</code>.</p>

@return a {@link SAML2KeystoreGenerator} object
pac4j-saml/src/main/java/org/pac4j/saml/config/SAML2Configuration.java