Package org.c02e.jpgpj
Interface EncryptedAsciiArmorHeadersManipulator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EncryptedAsciiArmorHeadersManipulatorA manipulator that ignores all headers manipulations -
Method Summary
Modifier and TypeMethodDescriptiondefault voidremoveHeader(String name) Removes specified header - no-op if header not set anywayvoidSet the specified header value - replace any previous valuedefault voidupdateHeaders(Map<String, String> headers) Replaces existing headers and adds missing oneswrap(org.bouncycastle.bcpg.ArmoredOutputStream aos) Wraps anArmoredOutputStream
-
Field Details
-
EMPTY
A manipulator that ignores all headers manipulations
-
-
Method Details
-
setHeader
Set the specified header value - replace any previous value- Parameters:
name- Case sensitive name of header to set. Note: this method can be used to override the default version header value.value- Value to set - ifnullthen equivalent to header removal
-
removeHeader
Removes specified header - no-op if header not set anyway- Parameters:
name- Case sensitive name of header to set. Note: this method can be used to remove the default version header value.
-
updateHeaders
Replaces existing headers and adds missing ones- Parameters:
headers- The headers to update - ignored ifnull. Note: header name is case sensitive
-
wrap
Wraps anArmoredOutputStream- Parameters:
aos- The stream to wrap - ignored ifnull- Returns:
- The manipulator wrapping
-