Class PemUtils
java.lang.Object
org.keycloak.adapters.saml.config.PemUtils
Fork of the PemUtils from common module to avoid dependency on keycloak-crypto-default
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic X509CertificatedecodeCertificate(String cert) Decode a X509 Certificate from a PEM stringstatic PrivateKeydecodePrivateKey(String pem) Decode a Private Key from a PEM stringstatic PublicKeydecodePublicKey(String pem) Decode a Public Key from a PEM string
-
Constructor Details
-
PemUtils
public PemUtils()
-
-
Method Details
-
decodeCertificate
Decode a X509 Certificate from a PEM string- Parameters:
cert-- Returns:
- Throws:
Exception
-
decodePublicKey
Decode a Public Key from a PEM string- Parameters:
pem-- Returns:
- Throws:
Exception
-
decodePrivateKey
Decode a Private Key from a PEM string- Parameters:
pem-- Returns:
- Throws:
Exception
-