Package com.azure.identity
Class AuthenticationRecord
java.lang.Object
com.azure.identity.AuthenticationRecord
Represents the account information relating to an authentication request
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationRecorddeserialize(InputStream inputStream) Deserializes theAuthenticationRecordfrom the specifiedInputStreamstatic Mono<AuthenticationRecord>deserializeAsync(InputStream inputStream) Deserializes theAuthenticationRecordfrom the specifiedInputStreamGet the authority host used to authenticate the account.Get the client id of the application used for authentication.Get the unique identifier of the account.Get the tenant, which the account authenticated in.Get the user principal name of the account.voidserialize(OutputStream outputStream) Serializes theAuthenticationRecordto the specifiedOutputStreamserializeAsync(OutputStream outputStream) Serializes theAuthenticationRecordto the specifiedOutputStream
-
Method Details
-
getAuthority
Get the authority host used to authenticate the account.- Returns:
- the authority host.
-
getHomeAccountId
Get the unique identifier of the account.- Returns:
- the account id.
-
getTenantId
Get the tenant, which the account authenticated in.- Returns:
- the tenant id.
-
getClientId
Get the client id of the application used for authentication.- Returns:
- the client id.
-
getUsername
Get the user principal name of the account.- Returns:
- the username.
-
serializeAsync
Serializes theAuthenticationRecordto the specifiedOutputStream- Parameters:
outputStream- TheOutputStreamto which the serialized record will be written to.- Returns:
- A
MonocontainingVoid
-
serialize
Serializes theAuthenticationRecordto the specifiedOutputStream- Parameters:
outputStream- TheOutputStreamto which the serialized record will be written to.
-
deserializeAsync
Deserializes theAuthenticationRecordfrom the specifiedInputStream- Parameters:
inputStream- TheInputStreamfrom which the serialized record will be read.- Returns:
- A
Monocontaining theAuthenticationRecordobject.
-
deserialize
Deserializes theAuthenticationRecordfrom the specifiedInputStream- Parameters:
inputStream- TheInputStreamfrom which the serialized record will be read.- Returns:
- the
AuthenticationRecordobject.
-