Created
December 10, 2014 16:36
-
-
Save dmlloyd/7500201c011b63e66ad9 to your computer and use it in GitHub Desktop.
Proposed credential verification API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface RealmIdentity { | |
// [...] | |
/** | |
* Verify the given credential. The result is one of the following: | |
* <ul> | |
* <li>{@link VerificationResult#DENIED} - the credential is not valid</li> | |
* <li>{@link VerificationResult#UNVERIFIED} - the credential is not supported or could not be verified; retry with another credential type</li> | |
* <li>{@link VerificationResult#VERIFIED} - the credential is valid and verified</li> | |
* </ul> | |
* | |
* @param credential the credential to verify | |
* @return the non-{@code null} verification result | |
*/ | |
VerificationResult verifyCredential(Object credential); | |
// [...] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment