Class AthenzIdentityProviderImpl

  • All Implemented Interfaces:
    com.yahoo.component.Component, com.yahoo.component.Deconstructable, com.yahoo.container.jdisc.athenz.AthenzIdentityProvider, ServiceIdentityProvider, Comparable<com.yahoo.component.Component>

    public final class AthenzIdentityProviderImpl
    extends com.yahoo.component.AbstractComponent
    implements com.yahoo.container.jdisc.athenz.AthenzIdentityProvider, ServiceIdentityProvider
    A AthenzIdentityProvider / ServiceIdentityProvider component that provides the tenant identity.
    Author:
    mortent, bjorncs
    • Constructor Detail

      • AthenzIdentityProviderImpl

        @Inject
        public AthenzIdentityProviderImpl​(com.yahoo.container.core.identity.IdentityConfig config,
                                          com.yahoo.jdisc.Metric metric)
    • Method Detail

      • domain

        public String domain()
        Specified by:
        domain in interface com.yahoo.container.jdisc.athenz.AthenzIdentityProvider
      • service

        public String service()
        Specified by:
        service in interface com.yahoo.container.jdisc.athenz.AthenzIdentityProvider
      • getRoleSslContext

        public SSLContext getRoleSslContext​(String domain,
                                            String role)
        Specified by:
        getRoleSslContext in interface com.yahoo.container.jdisc.athenz.AthenzIdentityProvider
      • getRoleToken

        public String getRoleToken​(String domain)
        Specified by:
        getRoleToken in interface com.yahoo.container.jdisc.athenz.AthenzIdentityProvider
      • getRoleToken

        public String getRoleToken​(String domain,
                                   String role)
        Specified by:
        getRoleToken in interface com.yahoo.container.jdisc.athenz.AthenzIdentityProvider
      • getAccessToken

        public String getAccessToken​(String domain)
        Specified by:
        getAccessToken in interface com.yahoo.container.jdisc.athenz.AthenzIdentityProvider
      • getAccessToken

        public String getAccessToken​(String domain,
                                     List<String> roles)
        Specified by:
        getAccessToken in interface com.yahoo.container.jdisc.athenz.AthenzIdentityProvider
      • getPrivateKey

        public PrivateKey getPrivateKey()
        Specified by:
        getPrivateKey in interface com.yahoo.container.jdisc.athenz.AthenzIdentityProvider
      • trustStorePath

        public Path trustStorePath()
        Specified by:
        trustStorePath in interface com.yahoo.container.jdisc.athenz.AthenzIdentityProvider
      • getIdentityCertificate

        public List<X509Certificate> getIdentityCertificate()
        Specified by:
        getIdentityCertificate in interface com.yahoo.container.jdisc.athenz.AthenzIdentityProvider
      • deconstruct

        public void deconstruct()
        Specified by:
        deconstruct in interface com.yahoo.component.Deconstructable
        Overrides:
        deconstruct in class com.yahoo.component.AbstractComponent