Search in sources :

Example 1 with V1TokenReviewSpec

use of io.kubernetes.client.models.V1TokenReviewSpec in project weblogic-kubernetes-operator by oracle.

the class AuthenticationProxy method prepareTokenReview.

private V1TokenReview prepareTokenReview(String token) {
    LOGGER.entering();
    V1TokenReviewSpec spec = new V1TokenReviewSpec();
    spec.setToken(token);
    V1TokenReview tokenReview = new V1TokenReview();
    tokenReview.setSpec(spec);
    // Can't just log token review since it prints out the token, which is sensitive data.
    // It doesn't contain any other useful data, so don't log any return info.
    LOGGER.exiting();
    return tokenReview;
}
Also used : V1TokenReviewSpec(io.kubernetes.client.models.V1TokenReviewSpec) V1TokenReview(io.kubernetes.client.models.V1TokenReview)

Aggregations

V1TokenReview (io.kubernetes.client.models.V1TokenReview)1 V1TokenReviewSpec (io.kubernetes.client.models.V1TokenReviewSpec)1