Class AadTrustedIssuerRepository
java.lang.Object
com.azure.spring.cloud.autoconfigure.aad.AadTrustedIssuerRepository
- Direct Known Subclasses:
AadB2cTrustedIssuerRepository
A tenant id is used to construct the trusted issuer repository.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAadTrustedIssuerRepository(String tenantId) Creates a new instance ofAadTrustedIssuerRepository. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSpecialOidcIssuerLocationMap(String issuer, String oidcIssuerLocation) Adds a trusted issuer.booleanaddTrustedIssuer(String... issuers) Adds trusted issuers.getSpecialOidcIssuerLocation(String issuer) Gets the issuer's special OIDC issuer location.Gets the set of trusted issuers.booleanhasSpecialOidcIssuerLocation(String issuer) Whether the issuer has a special OIDC issuer location.booleanWhether the issuer is trusted.protected StringresolveBaseUri(String baseUri) Resolve the base uri to get scheme and host.
-
Field Details
-
tenantId
The tenant ID
-
-
Constructor Details
-
AadTrustedIssuerRepository
Creates a new instance ofAadTrustedIssuerRepository.- Parameters:
tenantId- the tenant ID
-
-
Method Details
-
getTrustedIssuers
Gets the set of trusted issuers.- Returns:
- the set of trusted issuers
-
addTrustedIssuer
Adds trusted issuers.- Parameters:
issuers- the issuers- Returns:
- whether the issuers were added
-
addSpecialOidcIssuerLocationMap
Adds a trusted issuer.- Parameters:
issuer- the issueroidcIssuerLocation- the OIDC issuer location
-
isTrusted
Whether the issuer is trusted.- Parameters:
issuer- the issuer- Returns:
- whether the issuer is trusted
-
hasSpecialOidcIssuerLocation
Whether the issuer has a special OIDC issuer location.- Parameters:
issuer- the issuer- Returns:
- whether the issuer has a special OIDC issuer location
-
getSpecialOidcIssuerLocation
Gets the issuer's special OIDC issuer location.- Parameters:
issuer- the issuer- Returns:
- the issuer's special OIDC issuer location
-
resolveBaseUri
Resolve the base uri to get scheme and host.- Parameters:
baseUri- baseUri Base uri in the configuration file.- Returns:
- the parsed base uri.
- Throws:
RuntimeException- thrown if the uri is not valid.
-