Top Description Fields Constructors Methods
com.mysql.cj.callback

public Class OpenidConnectIdTokenFromFileCallbackHandler

extends Object
implements MysqlCallbackHandler
Class Inheritance
All Implemented Interfaces
com.mysql.cj.callback.MysqlCallbackHandler
Imports
java.io.File, .IOException, java.nio.file.Files, com.mysql.cj.Messages, com.mysql.cj.conf.PropertyKey, com.mysql.cj.exceptions.ExceptionFactory, .WrongArgumentException, com.mysql.cj.util.StringUtils

A callback handler that reads an OpenID Identity Token from a file. The file containing the Identity Token must exist and not be larger than 10KB.

Field Summary

Modifier and TypeField and Description
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
handle(MysqlCallback
the MysqlCallback to process
cb
)

Implements com.mysql.cj.callback.MysqlCallbackHandler.handle.

Exchanges information between the caller of this method and the owner of the MysqlCallbackHandler instance.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ID_TOKEN_SIZE_LIMITback to summary
private static final int ID_TOKEN_SIZE_LIMIT

Constructor Detail

OpenidConnectIdTokenFromFileCallbackHandlerback to summary
public OpenidConnectIdTokenFromFileCallbackHandler()

Method Detail

handleback to summary
public void handle(MysqlCallback cb)

Implements com.mysql.cj.callback.MysqlCallbackHandler.handle.

Doc from com.mysql.cj.callback.MysqlCallbackHandler.handle.

Exchanges information between the caller of this method and the owner of the MysqlCallbackHandler instance. The method can be called multiple times with different callback implementations to exchange different types of information. A typical MysqlCallbackHandler implementation looks like:


private MysqlCallbackHandler callbackHandler = (cb) -> {
    if (cb instanceof UsernameCallback) {
        this.username = ((UsernameCallback) cb).getUsername();
    }
};
Parameters
cb:MysqlCallback

the MysqlCallback to process

Annotations
@Override