*/
@Override
protected Credentials getCredentials() {
Credentials creds = super.getCredentials();
if ( creds == null ) {
CredentialsCallback callback = new CredentialsCallback();
try {
pluggableCallackHander.handle(new Callback[]{callback});
Credentials callbackCreds = callback.getCredentials();
if ( callbackCreds instanceof TrustedCredentials ) {
creds = callbackCreds;
}
} catch (UnsupportedCallbackException e) {
log.warn("Credentials-Callback not supported try Name-Callback");