Class UsernameTokenSecurityStrategy

java.lang.Object
org.mule.runtime.extension.api.soap.security.UsernameTokenSecurityStrategy
All Implemented Interfaces:
SecurityStrategy

public final class UsernameTokenSecurityStrategy extends Object implements SecurityStrategy
Provides the capability to authenticate using Username and Password with a SOAP service by adding the UsernameToken element in the SOAP request.
Since:
1.0
  • Constructor Details

    • UsernameTokenSecurityStrategy

      public UsernameTokenSecurityStrategy(String username, String password, PasswordType passwordType, boolean addNonce, boolean addCreated)
    • UsernameTokenSecurityStrategy

      public UsernameTokenSecurityStrategy(String username, String password, PasswordType passwordType)
  • Method Details

    • getUsername

      public String getUsername()
    • getPassword

      public String getPassword()
    • getPasswordType

      public PasswordType getPasswordType()
    • isAddNonce

      public boolean isAddNonce()
    • isAddCreated

      public boolean isAddCreated()
    • accept

      public void accept(SecurityStrategyVisitor visitor)
      Description copied from interface: SecurityStrategy
      Dispatches in a reflective way to the method with the specific SecurityStrategy type as argument.
      Specified by:
      accept in interface SecurityStrategy
      Parameters:
      visitor - the accepted visitor.