public final class PEMDecoder extends Object
Constructor and Description |
---|
PEMDecoder() |
Modifier and Type | Method and Description |
---|---|
RSAPublicKey |
decodeRSAPublicKey(String encodedKey)
Decodes a PEM encoded Public Key.
|
X509Certificate |
decodeX509Certificate(String encodedCert)
Decodes a PEM encoded X.509 Certificate.
|
public RSAPublicKey decodeRSAPublicKey(String encodedKey) throws NoSuchAlgorithmException, InvalidKeySpecException
encodedKey
- The Base64 encoded public key bytes.NoSuchAlgorithmException
- If the key cannot be decoded.InvalidKeySpecException
- If the key cannot be decoded.public X509Certificate decodeX509Certificate(String encodedCert) throws CertificateException
encodedCert
- The Base64 encoded certificate bytes.CertificateException
- If the certificate cannot be decoded.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.