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
    --- | ---
    `String` | `password` Specifies the password to be used when injecting a `javax.jms.JMSContext` object
    `String` | `userName` Specifies the userName to be used when injecting a `javax.jms.JMSContext` object

- - ### Element Detail

    - #### userName

          public abstract String userName

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

    - #### password

          public abstract String password

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

Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.