javax.jms

## Annotation Type JMSPasswordCredential

-     @Retention(value=RUNTIME)
       @Target(value={METHOD,FIELD,PARAMETER,TYPE})
      public @interface JMSPasswordCredential

  This annotation may be used to specify the userName and password to be used when injecting a `javax.jms.JMSContext` object.
  Since:
    JMS 2.0
  See Also:
    `ConnectionFactory.createContext(java.lang.String, java.lang.String)`

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `java.lang.String` | `password` Specifies the password to be used when injecting a `javax.jms.JMSContext` object
    `java.lang.String` | `userName` Specifies the userName to be used when injecting a `javax.jms.JMSContext` object

- - ### Element Detail

    - #### userName

          public abstract java.lang.String userName

      Specifies the userName to be used when injecting a `javax.jms.JMSContext` object

  - - #### password

          public abstract java.lang.String password

      Specifies the password to be used when injecting a `javax.jms.JMSContext` object