Class RSSecurityUtils


  • public final class RSSecurityUtils
    extends Object
    • Method Detail

      • isSignedAndEncryptedTwoWay

        public static boolean isSignedAndEncryptedTwoWay​(Message m)
      • 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