1 | String getUsername() {↵ | | 1 | String getClassname()↵
|
2 | ↵ | | |
|
| | | 2 | {↵
|
3 | return getPropertyAsString(PRINCIPAL);↵ | | 3 | return getPropertyAsString(↵
|
4 | }↵ | | |
|
|
5 | ↵ | | 4 | CLASSNAME);↵
|
| | | 5 | }↵
|
| | | 6 | ↵
|
6 | /**↵ | | 7 | /**↵
|
7 | * Set the password to login to the jms server↵ | | 8 | * Set the ↵
|
8 | * ↵ | | |
|
9 | * @param pwd↵ | | |
|
10 | ↵ | | 9 | string label used to create an instance of the↵
|
| | | 10 | * test with the string constructor.↵
|
| | | 11 | * @param constr↵
|
11 | */↵ | | 12 | */↵
|
12 | public void setPassword(String pwd) {↵ | | 13 | public void set↵
|
13 | setProperty(CREDENTIALS, pwd);↵ | | |
|
14 | }↵ | | |
|
|
15 | /**↵ | | |
|
16 | * return the password used to login to the jms server↵ | | |
|
17 | * ↵ | | |
|
18 | * @return the password used to login to the jms server↵ | | |
|
19 | ↵ | | 14 | ConstructorString(String constr)↵
|
| | | 15 | {↵
|
| | | 16 | setProperty(CONSTRUCTORSTRING,constr);↵
|
| | | 17 | }↵
|
| | | 18 | ↵
|
| | | 19 | /**↵
|
| | | 20 | * get the string passed to the string constructor↵
|
20 | */↵ | | 21 | */↵
|
21 | public String getPassword() {↵ | | 22 | public String get↵
|
22 | ↵ | | 23 | ConstructorString()↵
|
| | | 24 | {↵
|
23 | return getPropertyAsString(CREDENTIALS);↵ | | 25 | return getPropertyAsString(C↵
|
24 | ↵ | | 26 | ONSTRUCTORSTRING);↵
|
25 | } | | 27 | }
|