Package sop.operation
Interface ExtractCert
public interface ExtractCert
-
Method Summary
Modifier and TypeMethodDescriptiondefault Ready
key
(byte[] key) Extract the cert(s) from the provided key(s).key
(InputStream keyInputStream) Extract the cert(s) from the provided key(s).noArmor()
Disable ASCII armor encoding.
-
Method Details
-
noArmor
ExtractCert noArmor()Disable ASCII armor encoding.- Returns:
- builder instance
-
key
Extract the cert(s) from the provided key(s).- Parameters:
keyInputStream
- input stream containing the encoding of one or more OpenPGP keys- Returns:
- result containing the encoding of the keys certs
- Throws:
IOException
- in case of an IO errorSOPGPException.BadData
- if theInputStream
does not contain an OpenPGP key
-
key
Extract the cert(s) from the provided key(s).- Parameters:
key
- byte array containing the encoding of one or more OpenPGP key- Returns:
- result containing the encoding of the keys certs
- Throws:
IOException
- in case of an IO errorSOPGPException.BadData
- if the byte array does not contain an OpenPGP key
-