public class MockValidationCallbackHandler extends AbstractCallbackHandler
If the valid
property is set to true
(the default), this handler simply accepts and
validates every password or certificate validation callback that is passed to it.
This class handles CertificateValidationCallback
s and PasswordValidationCallback
s, and
throws an UnsupportedCallbackException
for others
logger
Constructor and Description |
---|
MockValidationCallbackHandler() |
MockValidationCallbackHandler(boolean valid) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleInternal(Callback callback)
Template method that should be implemented by subclasses.
|
void |
setValid(boolean valid) |
handle
public MockValidationCallbackHandler()
public MockValidationCallbackHandler(boolean valid)
protected void handleInternal(Callback callback) throws IOException, UnsupportedCallbackException
AbstractCallbackHandler
handleInternal
in class AbstractCallbackHandler
IOException
UnsupportedCallbackException
public void setValid(boolean valid)
Copyright © 2020 Pivotal Software. All rights reserved.