Class RSSecurityUtils
- java.lang.Object
-
- org.apache.cxf.rs.security.common.RSSecurityUtils
-
public final class RSSecurityUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringUSE_REQUEST_SIGNATURE_CERTstatic StringX509_CERTstatic StringX509_ISSUER_SERIAL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CallbackHandlergetCallbackHandler(Message message, Class<?> callingClass)static CallbackHandlergetCallbackHandler(Message message, Class<?> callingClass, String callbackProperty)static X509Certificate[]getCertificates(org.apache.wss4j.common.crypto.Crypto crypto, String user)static org.apache.wss4j.common.crypto.CryptogetCrypto(Message message, String cryptoKey, String propKey)static StringgetSignaturePassword(Message message, String userName, Class<?> callingClass)static StringgetUserName(Message message, org.apache.wss4j.common.crypto.Crypto crypto, String userNameKey)static StringgetUserName(org.apache.wss4j.common.crypto.Crypto crypto, String userName)static booleanisSignedAndEncryptedTwoWay(Message m)static X509CertificateloadX509Certificate(org.apache.wss4j.common.crypto.Crypto crypto, Element certNode)static X509CertificateloadX509IssuerSerial(org.apache.wss4j.common.crypto.Crypto crypto, Element certNode)
-
-
-
Field Detail
-
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
-
-
Method Detail
-
isSignedAndEncryptedTwoWay
public static boolean isSignedAndEncryptedTwoWay(Message m)
-
loadX509Certificate
public static X509Certificate loadX509Certificate(org.apache.wss4j.common.crypto.Crypto crypto, Element certNode) throws Exception
- Throws:
Exception
-
loadX509IssuerSerial
public static X509Certificate loadX509IssuerSerial(org.apache.wss4j.common.crypto.Crypto crypto, Element certNode) throws Exception
- Throws:
Exception
-
getCertificates
public static X509Certificate[] getCertificates(org.apache.wss4j.common.crypto.Crypto crypto, String user) throws Exception
- Throws:
Exception
-
getCrypto
public static org.apache.wss4j.common.crypto.Crypto getCrypto(Message message, String cryptoKey, String propKey) throws IOException, org.apache.wss4j.common.ext.WSSecurityException
- Throws:
IOExceptionorg.apache.wss4j.common.ext.WSSecurityException
-
getUserName
public static String getUserName(Message message, org.apache.wss4j.common.crypto.Crypto crypto, String userNameKey)
-
getUserName
public static String getUserName(org.apache.wss4j.common.crypto.Crypto crypto, String userName)
-
getSignaturePassword
public static String getSignaturePassword(Message message, String userName, Class<?> callingClass) throws org.apache.wss4j.common.ext.WSSecurityException
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
getCallbackHandler
public static CallbackHandler getCallbackHandler(Message message, Class<?> callingClass) throws org.apache.wss4j.common.ext.WSSecurityException
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
getCallbackHandler
public static CallbackHandler getCallbackHandler(Message message, Class<?> callingClass, String callbackProperty) throws org.apache.wss4j.common.ext.WSSecurityException
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
-