Class IntegraICP
java.lang.Object
br.ufsc.labsec.signature.signer.a3.CloudHelper
br.ufsc.labsec.signature.signer.a3.IntegraICP
- All Implemented Interfaces:
CertificateInformation
,InformationSigner
,RemoteKeyStore
public class IntegraICP extends CloudHelper
-
Field Summary
Fields Modifier and Type Field Description static String
channel
static String
INTEGRAICP_ACCESS_TOKEN
static URI
redirectURI
static URI
urlBase
Fields inherited from class br.ufsc.labsec.signature.signer.a3.CloudHelper
certificate
-
Constructor Summary
Constructors Constructor Description IntegraICP()
IntegraICP(String cpf)
-
Method Summary
Modifier and Type Method Description protected byte[]
getCert()
Solicita ao servidor em cloud para que retorne o certificado do assinante, através de uma requisição GET.org.json.JSONObject
getClearings()
void
setCode(String code)
void
setVerifier(String verifier)
byte[]
sign(byte[] data, String signatureSuite)
Assina um hashMethods inherited from class br.ufsc.labsec.signature.signer.a3.CloudHelper
getCertificate
-
Field Details
-
urlBase
-
channel
-
INTEGRAICP_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
redirectURI
-
-
Constructor Details
-
IntegraICP
public IntegraICP() -
IntegraICP
-
-
Method Details
-
getClearings
public org.json.JSONObject getClearings() throws IOException, NoSuchAlgorithmException, URISyntaxException, InterruptedException -
getCert
Description copied from class:CloudHelper
Solicita ao servidor em cloud para que retorne o certificado do assinante, através de uma requisição GET.- Specified by:
getCert
in classCloudHelper
- Returns:
- byte[] bytes do JSON que encapsula o certificado
- Throws:
IntegraICPException
-
sign
Description copied from interface:InformationSigner
Assina um hash- 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
-
setCode
-
setVerifier
-