Migrate org.apache.ws.security and org.apache.ws.security.components.crypto packages to org.apache.wss4j.common.ext and org.apache.wss4j.common.crypto packages

MSAL

Java EE has been rebranded to Jakarta EE. This recipe replaces Apache security packages to migrate to Apache wss4j.

org.openrewrite.java.migrate.jakarta.UpdateApacheWSSecurityPackages
mod run . --recipe=org.openrewrite.java.migrate.jakarta.UpdateApacheWSSecurityPackages

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change type org.apache.ws.security.message.token.BinarySecurity to org.apache.wss4j.common.token.BinarySecurity
  2. Change type org.apache.ws.security.message.token.DOMX509Data to org.apache.wss4j.common.token.DOMX509Data
  3. Change type org.apache.ws.security.message.token.DOMX509IssuerSerial to org.apache.wss4j.common.token.DOMX509IssuerSerial
  4. Change type org.apache.ws.security.message.token.PKIPathSecurity to org.apache.wss4j.common.token.PKIPathSecurity
  5. Change type org.apache.ws.security.message.token.Reference to org.apache.wss4j.common.token.Reference
  6. Change type org.apache.ws.security.message.token.SecurityTokenReference to org.apache.wss4j.common.token.SecurityTokenReference
  7. Change type org.apache.ws.security.message.token.TokenElementCallback to org.apache.wss4j.common.token.TokenElementCallback
  8. Change type org.apache.ws.security.message.token.X509Security to org.apache.wss4j.common.token.X509Security
  9. Change type org.apache.ws.security.message.token.DerivedKeyToken to org.apache.wss4j.dom.message.token.DerivedKeyToken
  10. Change type org.apache.ws.security.message.token.KerberosSecurity to org.apache.wss4j.dom.message.token.KerberosSecurity
  11. Change type org.apache.ws.security.message.token.SecurityContextToken to org.apache.wss4j.dom.message.token.SecurityContextToken
  12. Change type org.apache.ws.security.message.token.SignatureConfirmation to org.apache.wss4j.dom.message.token.SignatureConfirmation
  13. Change type org.apache.ws.security.message.token.Timestamp to org.apache.wss4j.dom.message.token.Timestamp
  14. Change type org.apache.ws.security.message.token.UsernameToken to org.apache.wss4j.dom.message.token.UsernameToken
  15. Change type org.apache.ws.security.message.token.KerberosClientExceptionAction to org.apache.wss4j.common.kerberos.KerberosClientExceptionAction
  16. Change type org.apache.ws.security.message.token.KerberosContext to org.apache.wss4j.common.kerberos.KerberosContext
  17. Change type org.apache.ws.security.message.token.KerberosServiceContext to org.apache.wss4j.common.kerberos.KerberosServiceContext
  18. Change type org.apache.ws.security.message.token.KerberosServiceExceptionAction to org.apache.wss4j.common.kerberos.KerberosServiceExceptionAction
  19. Rename package name org.apache.ws.security.components.crypto to org.apache.wss4j.common.crypto
  20. Rename package name org.apache.ws.security to org.apache.wss4j.common.ext