Package sop.operation
Interface Armor
public interface Armor
-
Method Summary
Modifier and TypeMethodDescriptiondefault Ready
data
(byte[] data) Armor the provided data.data
(InputStream data) Armor the provided data.label
(ArmorLabel label) Overrides automatic detection of label.
-
Method Details
-
label
Overrides automatic detection of label.- Parameters:
label
- armor label- Returns:
- builder instance
- Throws:
SOPGPException.UnsupportedOption
-
data
Armor the provided data.- Parameters:
data
- input stream of unarmored OpenPGP data- Returns:
- armored data
- Throws:
SOPGPException.BadData
- if the data appears to be OpenPGP packets, but those are brokenIOException
- in case of an IO error
-
data
Armor the provided data.- Parameters:
data
- unarmored OpenPGP data- Returns:
- armored data
- Throws:
SOPGPException.BadData
- if the data appears to be OpenPGP packets, but those are brokenIOException
- in case of an IO error
-