Package jakarta.jms

Annotation Interface JMSPasswordCredential


@Retention(RUNTIME) @Target({METHOD,FIELD,PARAMETER,TYPE}) public @interface JMSPasswordCredential
This annotation may be used to specify the userName and password to be used when injecting a jakarta.jms.JMSContext object.
Since:
JMS 2.0
Version:
Jakarta Messaging 2.0
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Specifies the password to be used when injecting a jakarta.jms.JMSContext object
    Specifies the userName to be used when injecting a jakarta.jms.JMSContext object
  • Element Details

    • userName

      String userName
      Specifies the userName to be used when injecting a jakarta.jms.JMSContext object
      Returns:
      The userName to be used when injecting a jakarta.jms.JMSContext object
    • password

      String password
      Specifies the password to be used when injecting a jakarta.jms.JMSContext object
      Returns:
      the password to be used when injecting a jakarta.jms.JMSContext object