1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.ksb.security.credentials;
17
18 import org.kuali.rice.core.api.security.credentials.Credentials;
19 import org.springframework.util.Assert;
20
21
22
23
24
25
26
27 public final class UsernamePasswordCredentials implements Credentials {
28
29 private final String username;
30
31 private final String password;
32
33 public UsernamePasswordCredentials(final String username, final String password) {
34 this.username = username;
35 this.password = password;
36
37 Assert.notNull(this.username, "username cannote be null.");
38 Assert.notNull(this.password, "password cannote be null.");
39 }
40
41 public String getPassword() {
42 return this.password;
43 }
44
45 public String getUsername() {
46 return this.username;
47 }
48
49
50
51 }