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
-
Constructor Summary
ConstructorDescriptionAadTrustedIssuerRepository
(String tenantId) Creates a new instance ofAadTrustedIssuerRepository
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSpecialOidcIssuerLocationMap
(String issuer, String oidcIssuerLocation) Adds a trusted issuer.boolean
addTrustedIssuer
(String... issuers) Adds trusted issuers.getSpecialOidcIssuerLocation
(String issuer) Gets the issuer's special OIDC issuer location.Gets the set of trusted issuers.boolean
hasSpecialOidcIssuerLocation
(String issuer) Whether the issuer has a special OIDC issuer location.boolean
Whether the issuer is trusted.protected String
resolveBaseUri
(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.
-