Package javax.security.auth.callback

Examples of javax.security.auth.callback.UnsupportedCallbackException


     * {@code UnsupportedCallbackException}.
     */
    protected void handlePublicKeyBasedRequest(SignatureVerificationKeyCallback callback,
                                               SignatureVerificationKeyCallback.PublicKeyBasedRequest request)
            throws IOException, UnsupportedCallbackException {
        throw new UnsupportedCallbackException(callback);
    }
View Full Code Here


        else if (callback instanceof PasswordCallback) {
            PasswordCallback passwordCallback = (PasswordCallback) callback;
            passwordCallback.setPassword(password);
        }
        else {
            throw new UnsupportedCallbackException(callback);
        }
    }
View Full Code Here

        else if (callback instanceof PasswordValidationCallback) {
            PasswordValidationCallback validationCallback = (PasswordValidationCallback) callback;
            validationCallback.setValidator(new MockPasswordValidator());
        }
        else {
            throw new UnsupportedCallbackException(callback);
        }
    }
View Full Code Here

        }
        else if (callback instanceof CleanupCallback) {
            SecurityContextHolder.clearContext();
            return;
        }
        throw new UnsupportedCallbackException(callback);
    }
View Full Code Here

        else if (callback instanceof TimestampValidationCallback) {
            TimestampValidationCallback timestampCallback = (TimestampValidationCallback) callback;
            timestampCallback.setValidator(new DefaultTimestampValidator());
        }
        else {
            throw new UnsupportedCallbackException(callback);
        }
    }
View Full Code Here

        }
        else if (callback instanceof CleanupCallback) {
            SecurityContextHolder.clearContext();
        }
        else {
            throw new UnsupportedCallbackException(callback);
        }
    }
View Full Code Here

            if (validationCallback.getRequest() instanceof PasswordValidationCallback.PlainTextPasswordRequest) {
                validationCallback.setValidator(new JaasPlainTextPasswordValidator());
                return;
            }
        }
        throw new UnsupportedCallbackException(callback);
    }
View Full Code Here

                        }
                        else if (callback instanceof PasswordCallback) {
                            ((PasswordCallback) callback).setPassword(password.toCharArray());
                        }
                        else {
                            throw new UnsupportedCallbackException(callback);
                        }
                    }
                });
            }
            catch (LoginException ex) {
View Full Code Here

    protected final void handleInternal(Callback callback) throws UnsupportedCallbackException {
        if (callback instanceof CertificateValidationCallback) {
            ((CertificateValidationCallback) callback).setValidator(new JaasCertificateValidator());
        }
        else {
            throw new UnsupportedCallbackException(callback);
        }
    }
View Full Code Here

                    if (current instanceof NameCallback) {
                        ((NameCallback) current).setName(username);
                    } else if (current instanceof PasswordCallback) {
                        ((PasswordCallback) current).setPassword(password.toCharArray());
                    } else {
                        throw new UnsupportedCallbackException(current);
                    }
                }
            }
        };
        Configuration config = new Configuration() {
View Full Code Here

TOP

Related Classes of javax.security.auth.callback.UnsupportedCallbackException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.