Class LinkRequest
java.lang.Object
lol.trq.alts.vault.LinkRequest
The request a new owner device shows (AVP SPEC 11.6): its ephemeral public key. It travels to an existing
owner device out of band, which shows the same
confirmationCode() and, once the owner confirms the
two match, answers with a LinkGrant (LinkSession.approve(OwnerIdentity, LinkRequest, Predicate)).
It holds no secret.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionThe 6-digit code both devices show (SPEC 11.6), leading zeros kept.booleanWhetherois a request with the same text.inthashCode()Hashes whatequals(Object)compares.static LinkRequestReads a link request from pasted text.text()The token text to carry to the existing owner device.toString()The confirmation code.
-
Method Details
-
parse
Reads a link request from pasted text. Whitespace anywhere in the text is ignored.- Parameters:
text- the pasted text- Returns:
- the request
- Throws:
AltsException- of kindINVALID_INPUTif the text is not a version 2 link request- Since:
- 1.0.0
-
text
The token text to carry to the existing owner device.- Returns:
- the text
- Since:
- 1.0.0
-
confirmationCode
The 6-digit code both devices show (SPEC 11.6), leading zeros kept.- Returns:
- the code
- Since:
- 1.0.0
-
equals
-
hashCode
public int hashCode()Hashes whatequals(Object)compares. -
toString
-