felles/sikkerhet/src/main/java/no/nav/vedtak/sikkerhet/jaspic/OidcAuthConfigProvider.java
/**
     * Creates a default callback handler via the system property
     * "authconfigprovider.client.callbackhandler", as seemingly required by the API
     * (API uses wording "may" create default handler).
     *
     * @return an instance of the default call back handler
     * @throws AuthException ved feil
     */
Creates a default callback handler via the system property
"authconfigprovider.client.callbackhandler", as seemingly required by the API
(API uses wording "may" create default handler).

@return an instance of the default call back handler
@throws AuthException ved feil
Creates a default callback handler via the system property " authconfigprovider . client . callbackhandler " as seemingly required by the API ( API uses wording " may " create default handler ) . @return an instance of the default call back handler @throws AuthException ved feil
private CallbackHandler createDefaultCallbackHandler() throws AuthException {
        String callBackClassName = ENV.getProperty(CALLBACK_HANDLER_PROPERTY_NAME);
        if (callBackClassName == null) {
            throw new AuthException("No default handler set via system property: " + CALLBACK_HANDLER_PROPERTY_NAME);
        }
        try {
            return (CallbackHandler) Thread.currentThread().getContextClassLoader().loadClass(callBackClassName).getDeclaredConstructor()
                    .newInstance();
        } catch (Exception e) {
            throw new AuthException(e.getMessage());
        }
    }
private CallbackHandler createDefaultCallbackHandler ( ) throws AuthException { String callBackClassName = ENV . getProperty ( CALLBACK_HANDLER_PROPERTY_NAME ) ; if ( callBackClassName == null ) { throw new AuthException ( "No default handler set via system property: " + CALLBACK_HANDLER_PROPERTY_NAME ) ; } try { return ( CallbackHandler ) Thread . currentThread ( ) . getContextClassLoader ( ) . loadClass ( callBackClassName ) . getDeclaredConstructor ( ) . newInstance ( ) ; } catch ( Exception e ) { throw new AuthException ( e . getMessage ( ) ) ; } }
Creates a default callback handler via the system property
 "authconfigprovider.client.callbackhandler", as seemingly required by the API
 (API uses wording "may" create default handler).
Creates a default callback handler via the system property " authconfigprovider . client . callbackhandler " as seemingly required by the API ( API uses wording " may " create default handler ) .