public final class SignerFactory
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static QCloudSigner |
getSigner(java.lang.String signerType) |
static void |
registerSigner(java.lang.String signerType,
java.lang.Class<? extends QCloudSigner> signerClass)
Register an implementation class for the given signer type.
|
static <T extends QCloudSigner> |
registerSigner(java.lang.String signerType,
T signer)
Register an signer instance for the given signer type.
|
public static void registerSigner(java.lang.String signerType, java.lang.Class<? extends QCloudSigner> signerClass)
signerType
- The name of the signer type to register.signerClass
- The class implementing the given signature protocol.public static <T extends QCloudSigner> void registerSigner(java.lang.String signerType, T signer)
T
- Class Type extends QCloudSigner
.signerType
- The name of the signer type to register.signer
- The instance implementing the given signature protocol.public static QCloudSigner getSigner(java.lang.String signerType)
signerType
- The signType to talk to.