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 |
getPassword(Message message,
String userName,
int type,
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
Exception
public static X509Certificate loadX509IssuerSerial(org.apache.wss4j.common.crypto.Crypto crypto, Element certNode) throws Exception
Exception
public static X509Certificate[] getCertificates(org.apache.wss4j.common.crypto.Crypto crypto, String user) throws Exception
Exception
public static org.apache.wss4j.common.crypto.Crypto getCrypto(Message message, String cryptoKey, String propKey) throws IOException, org.apache.wss4j.common.ext.WSSecurityException
IOException
org.apache.wss4j.common.ext.WSSecurityException
public 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 getPassword(Message message, String userName, int type, Class<?> callingClass) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
public static CallbackHandler getCallbackHandler(Message message, Class<?> callingClass) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
public static CallbackHandler getCallbackHandler(Message message, Class<?> callingClass, String callbackProperty) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
Apache CXF