public class MessageVerifier extends Object
Constructor and Description |
---|
MessageVerifier(KeyProvider keyProvider) |
MessageVerifier(KeyProvider keyProvider,
AlgorithmProvider algorithmProvider) |
MessageVerifier(KeyProvider keyProvider,
List<String> requiredHeaders) |
MessageVerifier(KeyProvider keyProvider,
SecurityProvider securityProvider,
AlgorithmProvider algorithmProvider) |
MessageVerifier(KeyProvider keyProvider,
SecurityProvider securityProvider,
AlgorithmProvider algorithmProvider,
List<String> requiredHeaders) |
MessageVerifier(KeyProvider keyProvider,
SecurityProvider securityProvider,
AlgorithmProvider algorithmProvider,
List<String> requiredHeaders,
SignatureValidator signatureValidator) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAddDefaultRequiredHeaders() |
void |
setAddDefaultRequiredHeaders(boolean addDefaultRequiredHeaders)
Set whether we require some default headers to be signed, such as "digest" and "(request-target"),
depending on whether there is a request body or not, and whether we are the client or not
|
void |
setAlgorithmProvider(AlgorithmProvider algorithmProvider) |
void |
setkeyProvider(KeyProvider provider) |
void |
setSecurityProvider(SecurityProvider securityProvider) |
void |
verifyMessage(Map<String,List<String>> messageHeaders,
String method,
String uri,
Message m,
byte[] messageBody) |
public MessageVerifier(KeyProvider keyProvider)
public MessageVerifier(KeyProvider keyProvider, List<String> requiredHeaders)
public MessageVerifier(KeyProvider keyProvider, AlgorithmProvider algorithmProvider)
public MessageVerifier(KeyProvider keyProvider, SecurityProvider securityProvider, AlgorithmProvider algorithmProvider)
public MessageVerifier(KeyProvider keyProvider, SecurityProvider securityProvider, AlgorithmProvider algorithmProvider, List<String> requiredHeaders)
public MessageVerifier(KeyProvider keyProvider, SecurityProvider securityProvider, AlgorithmProvider algorithmProvider, List<String> requiredHeaders, SignatureValidator signatureValidator)
public final void setkeyProvider(KeyProvider provider)
public final void setSecurityProvider(SecurityProvider securityProvider)
public final void setAlgorithmProvider(AlgorithmProvider algorithmProvider)
public void verifyMessage(Map<String,List<String>> messageHeaders, String method, String uri, Message m, byte[] messageBody)
public boolean isAddDefaultRequiredHeaders()
public void setAddDefaultRequiredHeaders(boolean addDefaultRequiredHeaders)
Apache CXF