public class Federation
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static FederationResponse |
resolve(java.lang.String value)
This method is a helper method for handling user inputs that contain `destination` value.
|
public static FederationResponse resolve(java.lang.String value)
bob*stellar.org`
) it splits Stellar address and then tries to find information about
federation server in stellar.toml
file for a given domain.GB5XVAABEQMY63WTHDQ5RXADGYF345VWMNPTN2GFUDZT57D57ZQTJ7PS
) it simply returns the
given Account ID.value
- Stellar address or account idMalformedAddressException
- Address is malformedConnectionErrorException
- Connection problemsNoFederationServerException
- Stellar.toml does not contain federation server infoFederationServerInvalidException
- Federation server is invalid (malformed URL, not HTTPS, etc.)StellarTomlNotFoundInvalidException
- Stellar.toml file was not found or was malformed.NotFoundException
- Stellar address not found by federation serverServerErrorException
- Federation server responded with error