public class UsernameTokenValidator extends Object implements Validator
| Constructor and Description |
|---|
UsernameTokenValidator() |
| Modifier and Type | Method and Description |
|---|---|
Credential |
validate(Credential credential,
RequestData data)
Validate the credential argument.
|
protected void |
verifyCustomPassword(UsernameToken usernameToken,
RequestData data)
Verify a UsernameToken containing a password of some unknown (but specified) password
type.
|
protected void |
verifyDigestPassword(UsernameToken usernameToken,
RequestData data)
Verify a UsernameToken containing a password digest.
|
protected void |
verifyPlaintextPassword(UsernameToken usernameToken,
RequestData data)
Verify a UsernameToken containing a plaintext password.
|
protected void |
verifyUnknownPassword(UsernameToken usernameToken,
RequestData data)
Verify a UsernameToken containing no password.
|
public Credential validate(Credential credential, RequestData data) throws WSSecurityException
validate in interface Validatorcredential - the Credential to be validateddata - the RequestData associated with the requestWSSecurityException - on a failed validationprotected void verifyCustomPassword(UsernameToken usernameToken, RequestData data) throws WSSecurityException
usernameToken - The UsernameToken instance to verifyWSSecurityException - on a failed authentication.protected void verifyPlaintextPassword(UsernameToken usernameToken, RequestData data) throws WSSecurityException
usernameToken - The UsernameToken instance to verifyWSSecurityException - on a failed authentication.protected void verifyDigestPassword(UsernameToken usernameToken, RequestData data) throws WSSecurityException
usernameToken - The UsernameToken instance to verifyWSSecurityException - on a failed authentication.protected void verifyUnknownPassword(UsernameToken usernameToken, RequestData data) throws WSSecurityException
usernameToken - The UsernameToken instance to verifyWSSecurityException - on a failed authentication.Copyright © 2018 JBoss by Red Hat. All rights reserved.