Package org.stellar.anchor.sep10
Class Sep10Service
- java.lang.Object
-
- org.stellar.anchor.sep10.Sep10Service
-
public class Sep10Service extends java.lang.ObjectThe Sep-10 protocol service.
-
-
Constructor Summary
Constructors Constructor Description Sep10Service(AppConfig appConfig, Sep10Config sep10Config, Horizon horizon, JwtService jwtService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChallengeResponsecreateChallenge(ChallengeRequest challengeRequest)java.lang.StringvalidateChallenge(java.lang.String challengeXdr)ValidationResponsevalidateChallenge(ValidationRequest validationRequest)
-
-
-
Constructor Detail
-
Sep10Service
public Sep10Service(AppConfig appConfig, Sep10Config sep10Config, Horizon horizon, JwtService jwtService)
-
-
Method Detail
-
createChallenge
public ChallengeResponse createChallenge(ChallengeRequest challengeRequest) throws SepException
- Throws:
SepException
-
validateChallenge
public ValidationResponse validateChallenge(ValidationRequest validationRequest) throws java.io.IOException, org.stellar.sdk.InvalidSep10ChallengeException, java.net.URISyntaxException, SepValidationException
- Throws:
java.io.IOExceptionorg.stellar.sdk.InvalidSep10ChallengeExceptionjava.net.URISyntaxExceptionSepValidationException
-
validateChallenge
public java.lang.String validateChallenge(java.lang.String challengeXdr) throws java.io.IOException, org.stellar.sdk.InvalidSep10ChallengeException, java.net.URISyntaxException- Throws:
java.io.IOExceptionorg.stellar.sdk.InvalidSep10ChallengeExceptionjava.net.URISyntaxException
-
-