Package org.nfctools.ndef.wkt.records.SignatureRecord

Examples of org.nfctools.ndef.wkt.records.SignatureRecord.CertificateFormat


        List<byte[]> certificates = signatureRecord.getCertificates();
        if(certificates.size() > 16) {
          throw new NdefEncoderException("Expected number of certificates " + certificates.size() + " <= 15", signatureRecord);
        }

        CertificateFormat certificateFormat = signatureRecord.getCertificateFormat();
        baos.write(((signatureRecord.hasCertificateUri() ? 1 : 0) << 7) | (certificateFormat.getValue() << 4) | (certificates.size() & 0xF));

        for(int i = 0; i < certificates.size(); i++) {
          byte[] certificate = certificates.get(i);

          if(certificate.length > 65535) {
View Full Code Here

TOP

Related Classes of org.nfctools.ndef.wkt.records.SignatureRecord.CertificateFormat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.