@NotThreadSafe public class DispositionOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
IMPORTANCE_OPTIONAL |
static String |
IMPORTANCE_REQUIRED |
static String |
PROTOCOL_PKCS7_SIGNATURE
Default protocol value
|
static String |
SIGNED_RECEIPT_MICALG
MicAlg attribute
|
static String |
SIGNED_RECEIPT_PROTOCOL
Protocol attribute
|
| Constructor and Description |
|---|
DispositionOptions() |
public static final String SIGNED_RECEIPT_PROTOCOL
public static final String SIGNED_RECEIPT_MICALG
public static final String IMPORTANCE_REQUIRED
public static final String IMPORTANCE_OPTIONAL
public static final String PROTOCOL_PKCS7_SIGNATURE
@Nonnull public DispositionOptions setProtocolImportance(@Nullable String sProtocolImportance)
sProtocolImportance - The importance to set. May be null.@Nullable public String getProtocolImportance()
null or "required" or
"optional"). May be null.public boolean isProtocolRequired()
public boolean isProtocolOptional()
@Nonnull public DispositionOptions setProtocol(@Nullable String sProtocol)
sProtocol - The protocol name (e.g. "pkcs7-signature"). May be null
.@Nullable public String getProtocol()
null
is supported.@Nonnull public DispositionOptions setMICAlgImportance(@Nullable String sMICAlgImportance)
sMICAlgImportance - The importance. May be null.@Nullable public String getMICAlgImportance()
null or "required" or
"optional").public boolean isMICAlgRequired()
public boolean isMICAlgOptional()
@Nonnull public DispositionOptions setMICAlg(@Nullable String sMICAlgs)
sMICAlgs - The MIC algorithm(s). May be null.@Nonnull public DispositionOptions setMICAlg(@Nullable ECryptoAlgorithmSign... aMICAlgs)
aMICAlgs - The digesting MIC algorithm(s). May be null.@Nonnull public DispositionOptions setMICAlg(@Nullable Iterable<? extends ECryptoAlgorithmSign> aMICAlgs)
aMICAlgs - The digesting MIC algorithm(s). May be null.@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<ECryptoAlgorithmSign> getAllMICAlgs()
null but maybe
empty.@Nullable public ECryptoAlgorithmSign getFirstMICAlg()
null if no MIC algorithm is set.@Nonnegative public int getMICAlgCount()
public boolean hasMICAlg()
true if at least one MIC algorithm is present,
false if none is present.@Nullable public String getMICAlgAsString()
null.@Nonnull public static DispositionOptions createFromString(@Nullable String sOptions) throws AS2Exception
signed-receipt-protocol=optional, pkcs7-signature;
signed-receipt-micalg=optional, sha1sOptions - The string to parse. May be null in which case an empty
object will be returned.null.AS2Exception - In the very unlikely case of a programming error in
StringTokenizer.Copyright © 2013–2022 Philip Helger. All rights reserved.