Class IntegraICP
java.lang.Object
br.ufsc.labsec.signature.signer.a3.IntegraICP
- All Implemented Interfaces:
CertificateInformation
,InformationSigner
,RemoteKeyStore
public class IntegraICP extends Object implements RemoteKeyStore
-
Field Summary
Fields Modifier and Type Field Description static String
channel
static URI
redirectURI
-
Constructor Summary
Constructors Constructor Description IntegraICP()
IntegraICP(String cpf)
-
Method Summary
Modifier and Type Method Description X509Certificate
getCertificate()
org.json.JSONObject
getClearings()
void
setCode(String code)
void
setVerifier(String verifier)
byte[]
sign(byte[] data, String signatureSuite)
Assina um hash
-
Field Details
-
redirectURI
-
channel
-
-
Constructor Details
-
IntegraICP
public IntegraICP() -
IntegraICP
-
-
Method Details
-
setVerifier
-
getClearings
public org.json.JSONObject getClearings() throws IOException, NoSuchAlgorithmException, URISyntaxException, InterruptedException -
setCode
-
getCertificate
- Specified by:
getCertificate
in interfaceCertificateInformation
- Throws:
CertificateException
-
sign
Description copied from interface:InformationSigner
Assina um hash- Specified by:
sign
in interfaceInformationSigner
- Parameters:
data
- Dados que serão assinadossignatureSuite
- O algoritmo de assinatura que será usado- Returns:
- Os bytes do hash assinado
- Throws:
SignerException
- Algum erro desconhecido ao tentar realizar a assinatura
-