public abstract class Authority
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Authority.KnownAuthorityResult |
Constructor and Description |
---|
Authority() |
Modifier and Type | Method and Description |
---|---|
static void |
addKnownAuthorities(java.util.List<Authority> authorities) |
abstract OAuth2Strategy |
createOAuth2Strategy() |
boolean |
equals(java.lang.Object o) |
static java.lang.String |
getAuthorityFromAccount(IAccount account) |
static Authority |
getAuthorityFromAuthorityUrl(java.lang.String authorityUrl)
Returns an Authority based on an authority url.
|
abstract Uri |
getAuthorityUri() |
abstract java.net.URL |
getAuthorityURL() |
boolean |
getDefault() |
static Authority.KnownAuthorityResult |
getKnownAuthorityResult(Authority authority) |
int |
hashCode() |
static boolean |
isKnownAuthority(Authority authority)
Authorities are either known by the developer and communicated to the library via configuration or they
are known to Microsoft based on the list of clouds returned from:
|
public abstract Uri getAuthorityUri()
public abstract java.net.URL getAuthorityURL()
public boolean getDefault()
public static Authority getAuthorityFromAuthorityUrl(java.lang.String authorityUrl)
authorityUrl
- java.net.MalformedURLException
public abstract OAuth2Strategy createOAuth2Strategy()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static void addKnownAuthorities(java.util.List<Authority> authorities)
public static boolean isKnownAuthority(Authority authority)
public static Authority.KnownAuthorityResult getKnownAuthorityResult(Authority authority)
public static java.lang.String getAuthorityFromAccount(IAccount account)