public final class AttachmentUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Set<String> |
ALL_PARAMS |
static char |
ASTERISK |
static char |
BACKSLASH |
static char |
CARRIAGE_RETURN |
static char |
DOUBLE_QUOTE |
static char |
EQUAL |
static char |
HTAB |
static char |
LEFT_PARENTHESIS |
static char |
LINEFEED |
static String |
MIME_HEADER_CONTENT_DESCRIPTION |
static String |
MIME_HEADER_CONTENT_DISPOSITION |
static String |
MIME_HEADER_CONTENT_ID |
static String |
MIME_HEADER_CONTENT_LOCATION |
static String |
MIME_HEADER_CONTENT_TYPE |
static String |
PARAM_CHARSET |
static String |
PARAM_CREATION_DATE |
static String |
PARAM_FILENAME |
static String |
PARAM_MODIFICATION_DATE |
static String |
PARAM_PADDING |
static String |
PARAM_READ_DATE |
static String |
PARAM_SIZE |
static String |
PARAM_TYPE |
static char |
RIGHT_PARENTHESIS |
static char |
SEMICOLON |
static char |
SINGLE_QUOTE |
static char |
SPACE |
Modifier and Type | Method and Description |
---|---|
static void |
canonizeMimeHeaders(OutputStream os,
Map<String,String> headers) |
static String |
concatParamValues(String a,
String b) |
static String |
decodeRfc2184(String text) |
static String |
getAttachmentId(String xopUri) |
static byte[] |
getBytesFromAttachment(String xopUri,
CallbackHandler attachmentCallbackHandler,
boolean removeAttachments) |
static String |
quote(String text) |
static void |
readAndReplaceEncryptedAttachmentHeaders(Map<String,String> headers,
InputStream attachmentInputStream) |
static InputStream |
setupAttachmentDecryptionStream(String encAlgo,
Cipher cipher,
Key key,
InputStream inputStream) |
static InputStream |
setupAttachmentEncryptionStream(Cipher cipher,
boolean complete,
Attachment attachment,
Map<String,String> headers) |
static String |
uncomment(String text) |
static String |
unfold(String text) |
static String |
unfoldWhitespace(String text) |
static String |
unquoteInnerText(String text) |
public static final String MIME_HEADER_CONTENT_DESCRIPTION
public static final String MIME_HEADER_CONTENT_DISPOSITION
public static final String MIME_HEADER_CONTENT_ID
public static final String MIME_HEADER_CONTENT_LOCATION
public static final String MIME_HEADER_CONTENT_TYPE
public static final char DOUBLE_QUOTE
public static final char SINGLE_QUOTE
public static final char LEFT_PARENTHESIS
public static final char RIGHT_PARENTHESIS
public static final char CARRIAGE_RETURN
public static final char LINEFEED
public static final char SPACE
public static final char HTAB
public static final char EQUAL
public static final char ASTERISK
public static final char SEMICOLON
public static final char BACKSLASH
public static final String PARAM_CHARSET
public static final String PARAM_CREATION_DATE
public static final String PARAM_FILENAME
public static final String PARAM_MODIFICATION_DATE
public static final String PARAM_PADDING
public static final String PARAM_READ_DATE
public static final String PARAM_SIZE
public static final String PARAM_TYPE
public static void canonizeMimeHeaders(OutputStream os, Map<String,String> headers) throws IOException
IOException
public static String decodeRfc2184(String text) throws UnsupportedEncodingException
UnsupportedEncodingException
public static void readAndReplaceEncryptedAttachmentHeaders(Map<String,String> headers, InputStream attachmentInputStream) throws IOException, WSSecurityException
IOException
WSSecurityException
public static InputStream setupAttachmentDecryptionStream(String encAlgo, Cipher cipher, Key key, InputStream inputStream) throws WSSecurityException
WSSecurityException
public static InputStream setupAttachmentEncryptionStream(Cipher cipher, boolean complete, Attachment attachment, Map<String,String> headers) throws WSSecurityException
WSSecurityException
public static byte[] getBytesFromAttachment(String xopUri, CallbackHandler attachmentCallbackHandler, boolean removeAttachments) throws WSSecurityException
WSSecurityException
public static String getAttachmentId(String xopUri) throws WSSecurityException
WSSecurityException
Copyright © 2019 JBoss by Red Hat. All rights reserved.