Package com.azure.identity
Class AuthenticationRecord
- java.lang.Object
-
- com.azure.identity.AuthenticationRecord
-
public final class AuthenticationRecord extends Object
Represents the account information relating to an authentication request
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthenticationRecorddeserialize(InputStream inputStream)Deserializes theAuthenticationRecordfrom the specifiedInputStreamstatic Mono<AuthenticationRecord>deserializeAsync(InputStream inputStream)Deserializes theAuthenticationRecordfrom the specifiedInputStreamStringgetAuthority()Get the authority host used to authenticate the account.StringgetClientId()Get the client id of the application used for authentication.StringgetHomeAccountId()Get the unique identifier of the account.StringgetTenantId()Get the tenant, which the account authenticated in.StringgetUsername()Get the user principal name of the account.voidserialize(OutputStream outputStream)Serializes theAuthenticationRecordto the specifiedOutputStreamMono<OutputStream>serializeAsync(OutputStream outputStream)Serializes theAuthenticationRecordto the specifiedOutputStream
-
-
-
Method Detail
-
getAuthority
public String getAuthority()
Get the authority host used to authenticate the account.- Returns:
- the authority host.
-
getHomeAccountId
public String getHomeAccountId()
Get the unique identifier of the account.- Returns:
- the account id.
-
getTenantId
public String getTenantId()
Get the tenant, which the account authenticated in.- Returns:
- the tenant id.
-
getClientId
public String getClientId()
Get the client id of the application used for authentication.- Returns:
- the client id.
-
getUsername
public String getUsername()
Get the user principal name of the account.- Returns:
- the username.
-
serializeAsync
public Mono<OutputStream> serializeAsync(OutputStream outputStream)
Serializes theAuthenticationRecordto the specifiedOutputStream- Parameters:
outputStream- TheOutputStreamto which the serialized record will be written to.- Returns:
- A
MonocontainingVoid
-
serialize
public void serialize(OutputStream outputStream)
Serializes theAuthenticationRecordto the specifiedOutputStream- Parameters:
outputStream- TheOutputStreamto which the serialized record will be written to.
-
deserializeAsync
public static Mono<AuthenticationRecord> deserializeAsync(InputStream inputStream)
Deserializes theAuthenticationRecordfrom the specifiedInputStream- Parameters:
inputStream- TheInputStreamfrom which the serialized record will be read.- Returns:
- A
Monocontaining theAuthenticationRecordobject.
-
deserialize
public static AuthenticationRecord deserialize(InputStream inputStream)
Deserializes theAuthenticationRecordfrom the specifiedInputStream- Parameters:
inputStream- TheInputStreamfrom which the serialized record will be read.- Returns:
- the
AuthenticationRecordobject.
-
-