token = context.nextToken(); if (token == VALUE_NULL) { return respondToAuthChallengeResponseBuilder.build(); context.nextToken(); respondToAuthChallengeResponseBuilder .challengeName(context.getUnmarshaller(String.class).unmarshall(context)); respondToAuthChallengeResponseBuilder.session(context.getUnmarshaller(String.class).unmarshall(context)); respondToAuthChallengeResponseBuilder.challengeParameters(new MapUnmarshaller<String, String>(context .getUnmarshaller(String.class), context.getUnmarshaller(String.class)).unmarshall(context)); respondToAuthChallengeResponseBuilder.authenticationResult(AuthenticationResultTypeUnmarshaller.getInstance() .unmarshall(context)); return respondToAuthChallengeResponseBuilder.build();
/** * <p> * The result returned by the server in response to the request to respond to the authentication challenge. * </p> * This is a convenience that creates an instance of the {@link AuthenticationResultType.Builder} avoiding the * need to create one manually via {@link AuthenticationResultType#builder()}. * * When the {@link Consumer} completes, {@link AuthenticationResultType.Builder#build()} is called immediately * and its result is passed to {@link #authenticationResult(AuthenticationResultType)}. * * @param authenticationResult * a consumer that will call methods on {@link AuthenticationResultType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #authenticationResult(AuthenticationResultType) */ default Builder authenticationResult(Consumer<AuthenticationResultType.Builder> authenticationResult) { return authenticationResult(AuthenticationResultType.builder().applyMutation(authenticationResult).build()); } }
/** * <p> * The result returned by the server in response to the request to respond to the authentication challenge. * </p> * This is a convenience that creates an instance of the {@link AuthenticationResultType.Builder} avoiding the * need to create one manually via {@link AuthenticationResultType#builder()}. * * When the {@link Consumer} completes, {@link AuthenticationResultType.Builder#build()} is called immediately * and its result is passed to {@link #authenticationResult(AuthenticationResultType)}. * * @param authenticationResult * a consumer that will call methods on {@link AuthenticationResultType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #authenticationResult(AuthenticationResultType) */ default Builder authenticationResult(Consumer<AuthenticationResultType.Builder> authenticationResult) { return authenticationResult(AuthenticationResultType.builder().applyMutation(authenticationResult).build()); } }