Class RSSecurityUtils

java.lang.Object
org.apache.cxf.rs.security.common.RSSecurityUtils

public final class RSSecurityUtils extends Object
  • Field Details

  • Method Details

    • 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:
      IOException
      org.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