Class KeyNameStrategy

    • Field Detail

      • log

        protected static final Logger log
    • Constructor Detail

      • KeyNameStrategy

        public KeyNameStrategy()
      • KeyNameStrategy

        public KeyNameStrategy​(String alias,
                               boolean forSigning)
    • Method Detail

      • insertKey

        public void insertKey​(SecurityTokenReference tokenRef,
                              SecurableSoapMessage secureMsg)
                       throws com.sun.xml.wss.XWSSecurityException
        Description copied from class: KeyInfoStrategy
        insert the Key Information into a SecurityTokenReference using the appropriate scheme
        Specified by:
        insertKey in class KeyInfoStrategy
        Parameters:
        tokenRef - the SecurityTokenReference into which the Key Information has to be inserted.
        secureMsg - the SecurableSoapMessage
        Throws:
        com.sun.xml.wss.XWSSecurityException - if there was a problem in inserting the key information
      • insertKey

        public void insertKey​(KeyInfoHeaderBlock keyInfo,
                              SecurableSoapMessage secureMsg,
                              String x509TokenId)
                       throws com.sun.xml.wss.XWSSecurityException
        Description copied from class: KeyInfoStrategy
        insert the Key Information into a ds:KeyInfo using the appropriate scheme
        Specified by:
        insertKey in class KeyInfoStrategy
        Parameters:
        keyInfo - the KeyInfo block into which the Key Information has to be inserted.
        secureMsg - the SecurableSoapMessage
        x509TokenId - value of the <xwss:X509Token>/@id in config file
        Throws:
        com.sun.xml.wss.XWSSecurityException - if there was a problem in inserting the key information
      • getKeyName

        public String getKeyName()
      • setKeyName

        public void setKeyName​(String name)