| Modifier and Type | Method and Description |
|---|---|
Certificate |
decodeCertificate(ReadableByteChannel contents)
Decode an X509 certificate
|
Certificate |
decodeCertificate(String contents)
Decode an X509 certificate
|
Collection<? extends Certificate> |
decodeCertificateChain(ReadableByteChannel contents)
Decode an X509 certificate chain
|
Collection<? extends Certificate> |
decodeCertificateChain(String contents)
Decode an X509 certificate chain
|
PrivateKey |
decodePrivateKey(byte[] contents)
Decode a private key.
|
PrivateKey |
decodePrivateKey(ReadableByteChannel bytes)
Decode a private key.
|
PublicKey |
decodePublicKey(ReadableByteChannel contents)
Decode a public key
|
PublicKey |
decodePublicKey(String contents)
Decode a public key
|
Pem.Decoder |
with(Pem.Passphrase passphrase)
Produce a decoder configured to use the specified passphrase for encrypted private keys
|
public Pem.Decoder with(Pem.Passphrase passphrase)
Produce a decoder configured to use the specified passphrase for encrypted private keys
passphrase - The passphrase or null if no encrypted private keys will be decodedpublic Certificate decodeCertificate(String contents)
Decode an X509 certificate
contents - The PEM encoded form of the X509 certificatepublic Certificate decodeCertificate(ReadableByteChannel contents)
Decode an X509 certificate
contents - The PEM encoded form of the X509 certificatepublic Collection<? extends Certificate> decodeCertificateChain(String contents)
Decode an X509 certificate chain
contents - The PEM encoded certificate chainpublic Collection<? extends Certificate> decodeCertificateChain(ReadableByteChannel contents)
Decode an X509 certificate chain
contents - The PEM encoded certificate chainpublic PrivateKey decodePrivateKey(ReadableByteChannel bytes) throws IOException
Decode a private key. The private key is sensitive data, the caller is responsible for ensuring the input stream is closed (and any backing storage is erased)
bytes - The PEM encoded private key as UTF-8 encoded byte streamIOExceptionpublic PrivateKey decodePrivateKey(byte[] contents)
Decode a private key. The private key is sensitive data and must be provided as a byte array. The caller is responsible for erasing the byte array after use.
contents - The PEM encoded private key as UTF-8 encoded bytespublic PublicKey decodePublicKey(String contents)
Decode a public key
contents - The PEM encoded public keypublic PublicKey decodePublicKey(ReadableByteChannel contents)
Decode a public key
contents - The PEM encoded public keyCopyright © 2016–2024. All rights reserved.