public class WSS4JUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.axis2.description.Parameter |
getClientUsernameTokenHandler(String password) |
static org.apache.ws.security.WSUsernameTokenPrincipal |
getUsernameTokenPrincipal(org.apache.axis2.context.MessageContext mc)
Returns the UsernameTokenPrincipal from the security results.
|
public static org.apache.ws.security.WSUsernameTokenPrincipal getUsernameTokenPrincipal(org.apache.axis2.context.MessageContext mc)
throws Exception
mc - The message context of the messageorg.apache.ws.security.WSUsernameTokenPrincipal.
If a wsse:UsernameToken was not present in the wsse:Security header then
null will be returned.Exception - If there are no security results.WSUsernameTokenPrincipalpublic static org.apache.axis2.description.Parameter getClientUsernameTokenHandler(String password)
Copyright © 2020 WSO2. All rights reserved.