public class BlucApi extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NDX_SHA1 |
static int |
NDX_SHA224 |
static int |
NDX_SHA256 |
static int |
NDX_SHA384 |
static int |
NDX_SHA512 |
| Constructor and Description |
|---|
BlucApi() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
attachContentsToPKCS7(byte[] content,
byte[] detached,
Date dtSign,
boolean verifyCLR) |
boolean |
certificate(byte[] certificado,
CertificateResponse resp) |
byte[] |
composeBodySha1(byte[] sign,
X509Certificate c,
Collection certCollection,
byte[] origHash,
Date signingTime,
int attachSize) |
byte[] |
composeBodySha256(byte[] sign,
X509Certificate c,
Collection certCollection,
byte[] origHash,
Date signingTime,
int attachSize) |
boolean |
envelope(byte[] certificado,
byte[] sha1,
byte[] sha256,
byte[] assinatura,
boolean politica,
Date dtAssinatura,
EnvelopeResponse resp) |
X509Certificate |
extractCert(byte[] assinatura) |
String |
extractSignerCert(String signb64) |
CryptoService |
getCcServ() |
String |
getCertSubject(String cert) |
String |
getCertSubjectCn(String cert) |
NameValue[] |
parseCertificate(String certificate) |
void |
setCcServ(CryptoService ccServ) |
boolean |
signedAttributes(byte[] certificado,
byte[] sha1,
byte[] sha256,
boolean politica,
Date dtAssinatura,
HashResponse resp) |
int |
validateSign(byte[] assinatura,
byte[] sha1,
byte[] sha256,
Date dtAssinatura,
boolean verificarLCRs,
ValidateResponse resp) |
protected boolean |
verifySign(int hashId,
X509Certificate cert,
byte[] contentHash,
byte[] sigBytes) |
public static final int NDX_SHA1
public static final int NDX_SHA224
public static final int NDX_SHA256
public static final int NDX_SHA384
public static final int NDX_SHA512
public boolean certificate(byte[] certificado,
CertificateResponse resp)
throws Exception
Exceptionpublic boolean envelope(byte[] certificado,
byte[] sha1,
byte[] sha256,
byte[] assinatura,
boolean politica,
Date dtAssinatura,
EnvelopeResponse resp)
throws Exception
Exceptionpublic boolean signedAttributes(byte[] certificado,
byte[] sha1,
byte[] sha256,
boolean politica,
Date dtAssinatura,
HashResponse resp)
throws Exception
Exceptionpublic X509Certificate extractCert(byte[] assinatura) throws Exception
Exceptionprotected boolean verifySign(int hashId,
X509Certificate cert,
byte[] contentHash,
byte[] sigBytes)
throws Exception
Exceptionpublic String extractSignerCert(String signb64) throws Exception
Exceptionpublic NameValue[] parseCertificate(String certificate) throws Exception
Exceptionpublic int validateSign(byte[] assinatura,
byte[] sha1,
byte[] sha256,
Date dtAssinatura,
boolean verificarLCRs,
ValidateResponse resp)
throws Exception
Exceptionpublic byte[] attachContentsToPKCS7(byte[] content,
byte[] detached,
Date dtSign,
boolean verifyCLR)
throws Exception
Exceptionpublic byte[] composeBodySha1(byte[] sign,
X509Certificate c,
Collection certCollection,
byte[] origHash,
Date signingTime,
int attachSize)
throws Exception
Exceptionpublic byte[] composeBodySha256(byte[] sign,
X509Certificate c,
Collection certCollection,
byte[] origHash,
Date signingTime,
int attachSize)
throws Exception
Exceptionpublic CryptoService getCcServ()
public void setCcServ(CryptoService ccServ)
Copyright © 2020. All rights reserved.