public abstract class PublisherVerificationModule extends Object
Constructor and Description |
---|
PublisherVerificationModule() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
doVerify(String code)
Verifies whether given verification code is valid or not
|
abstract String |
getVerificationCode(PublisherDataHolder holder)
Generates the verification code based on publisher
|
abstract void |
init(Properties properties)
initializes policy publisher retriever module
|
public abstract void init(Properties properties) throws Exception
properties
- Properties, that are needed to initialize the moduleException
- throws when initialization is failedpublic abstract String getVerificationCode(PublisherDataHolder holder) throws EntitlementException
holder
- PublisherDataHolder
String
EntitlementException
- if there are errors in generating verification codepublic abstract boolean doVerify(String code)
code
- verification code as String
Copyright © 2016 WSO2. All rights reserved.