org.apache.cxf.rs.security.common
Class SecurityUtils
java.lang.Object
org.apache.cxf.rs.security.common.SecurityUtils
public final class SecurityUtils
- extends Object
Method Summary |
static CallbackHandler |
getCallbackHandler(Message message,
Class<?> callingClass)
|
static CallbackHandler |
getCallbackHandler(Message message,
Class<?> callingClass,
String callbackProperty)
|
static X509Certificate[] |
getCertificates(org.apache.ws.security.components.crypto.Crypto crypto,
String user)
|
static org.apache.ws.security.components.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.ws.security.components.crypto.Crypto crypto,
String userName)
|
static String |
getUserName(Message message,
org.apache.ws.security.components.crypto.Crypto crypto,
String userNameKey)
|
static boolean |
isSignedAndEncryptedTwoWay(Message m)
|
static X509Certificate |
loadX509Certificate(org.apache.ws.security.components.crypto.Crypto crypto,
Element certNode)
|
static X509Certificate |
loadX509IssuerSerial(org.apache.ws.security.components.crypto.Crypto crypto,
Element certNode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
X509_CERT
public static final String X509_CERT
- See Also:
- Constant Field Values
X509_ISSUER_SERIAL
public static final String X509_ISSUER_SERIAL
- See Also:
- Constant Field Values
USE_REQUEST_SIGNATURE_CERT
public static final String USE_REQUEST_SIGNATURE_CERT
- See Also:
- Constant Field Values
isSignedAndEncryptedTwoWay
public static boolean isSignedAndEncryptedTwoWay(Message m)
loadX509Certificate
public static X509Certificate loadX509Certificate(org.apache.ws.security.components.crypto.Crypto crypto,
Element certNode)
throws Exception
- Throws:
Exception
loadX509IssuerSerial
public static X509Certificate loadX509IssuerSerial(org.apache.ws.security.components.crypto.Crypto crypto,
Element certNode)
throws Exception
- Throws:
Exception
getCertificates
public static X509Certificate[] getCertificates(org.apache.ws.security.components.crypto.Crypto crypto,
String user)
throws org.apache.ws.security.WSSecurityException
- Throws:
org.apache.ws.security.WSSecurityException
getCrypto
public static org.apache.ws.security.components.crypto.Crypto getCrypto(Message message,
String cryptoKey,
String propKey)
throws IOException,
org.apache.ws.security.WSSecurityException
- Throws:
IOException
org.apache.ws.security.WSSecurityException
getUserName
public static String getUserName(Message message,
org.apache.ws.security.components.crypto.Crypto crypto,
String userNameKey)
getUserName
public static String getUserName(org.apache.ws.security.components.crypto.Crypto crypto,
String userName)
getPassword
public static String getPassword(Message message,
String userName,
int type,
Class<?> callingClass)
getCallbackHandler
public static CallbackHandler getCallbackHandler(Message message,
Class<?> callingClass)
getCallbackHandler
public static CallbackHandler getCallbackHandler(Message message,
Class<?> callingClass,
String callbackProperty)
Apache CXF