public final class RSSecurityUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
USE_REQUEST_SIGNATURE_CERT |
static String |
X509_CERT |
static String |
X509_ISSUER_SERIAL |
| Modifier and Type | Method and Description |
|---|---|
static CallbackHandler |
getCallbackHandler(Message message,
Class<?> callingClass) |
static CallbackHandler |
getCallbackHandler(Message message,
Class<?> callingClass,
String callbackProperty) |
static X509Certificate[] |
getCertificates(org.apache.wss4j.common.crypto.Crypto crypto,
String user) |
static org.apache.wss4j.common.crypto.Crypto |
getCrypto(Message message,
String cryptoKey,
String propKey) |
static String |
getSignaturePassword(Message message,
String userName,
Class<?> callingClass) |
static String |
getUserName(org.apache.wss4j.common.crypto.Crypto crypto,
String userName) |
static String |
getUserName(Message message,
org.apache.wss4j.common.crypto.Crypto crypto,
String userNameKey) |
static boolean |
isSignedAndEncryptedTwoWay(Message m) |
static X509Certificate |
loadX509Certificate(org.apache.wss4j.common.crypto.Crypto crypto,
Element certNode) |
static X509Certificate |
loadX509IssuerSerial(org.apache.wss4j.common.crypto.Crypto crypto,
Element certNode) |
public static final String X509_CERT
public static final String X509_ISSUER_SERIAL
public static final String USE_REQUEST_SIGNATURE_CERT
public static boolean isSignedAndEncryptedTwoWay(Message m)
public static X509Certificate loadX509Certificate(org.apache.wss4j.common.crypto.Crypto crypto, Element certNode) throws Exception
Exceptionpublic static X509Certificate loadX509IssuerSerial(org.apache.wss4j.common.crypto.Crypto crypto, Element certNode) throws Exception
Exceptionpublic static X509Certificate[] getCertificates(org.apache.wss4j.common.crypto.Crypto crypto, String user) throws Exception
Exceptionpublic static org.apache.wss4j.common.crypto.Crypto getCrypto(Message message, String cryptoKey, String propKey) throws IOException, org.apache.wss4j.common.ext.WSSecurityException
IOExceptionorg.apache.wss4j.common.ext.WSSecurityExceptionpublic static String getUserName(Message message, org.apache.wss4j.common.crypto.Crypto crypto, String userNameKey)
public static String getUserName(org.apache.wss4j.common.crypto.Crypto crypto, String userName)
public static String getSignaturePassword(Message message, String userName, Class<?> callingClass) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionpublic static CallbackHandler getCallbackHandler(Message message, Class<?> callingClass) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionpublic static CallbackHandler getCallbackHandler(Message message, Class<?> callingClass, String callbackProperty) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionApache CXF