1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.wss4j.stax.securityEvent;
20
21 import org.apache.wss4j.stax.securityToken.UsernameSecurityToken;
22 import org.apache.xml.security.stax.securityEvent.TokenSecurityEvent;
23 import org.apache.wss4j.stax.ext.WSSConstants;
24
25 public class UsernameTokenSecurityEvent extends TokenSecurityEvent<UsernameSecurityToken> {
26
27 private String usernameTokenProfile;
28
29 public UsernameTokenSecurityEvent() {
30 super(WSSecurityEventConstants.USERNAME_TOKEN);
31 }
32
33 public WSSConstants.UsernameTokenPasswordType getUsernameTokenPasswordType() {
34 return getSecurityToken().getUsernameTokenPasswordType();
35 }
36
37 public String getUsernameTokenProfile() {
38 return usernameTokenProfile;
39 }
40
41 public void setUsernameTokenProfile(String usernameTokenProfile) {
42 this.usernameTokenProfile = usernameTokenProfile;
43 }
44 }