Interface IdentityPoolSubjectTokenSupplier

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    FileIdentityPoolSubjectTokenSupplier, UrlIdentityPoolSubjectTokenSupplier
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IdentityPoolSubjectTokenSupplier
    extends java.io.Serializable
    • Method Detail

      • getSubjectToken

        java.lang.String getSubjectToken​(ExternalAccountSupplierContext context)
                                  throws java.io.IOException
        Gets a subject token that can be exchanged for a GCP access token.
        Parameters:
        context - relevant context from the calling credential.
        Returns:
        a valid subject token.
        Throws:
        java.io.IOException