/** * Return whether this control contains enveloped data. * * @return true if the control contains enveloped data, false otherwise. */ public boolean isEnvelopedData() { EncryptedKey encKey = EncryptedKey.getInstance(pkiArchiveOptions.getValue()); return !encKey.isEncryptedValue(); }
public CertificateRequestMessage(CertReqMsg certReqMsg) { this.certReqMsg = certReqMsg; this.controls = certReqMsg.getCertReq().getControls(); }
/** * Return whether or not the proof-of-possession (POP) is of the type popSigningKey and * it has a public key MAC associated with it. * * @return true if POP is popSigningKey and a PKMAC is present, false otherwise. */ public boolean hasSigningKeyProofOfPossessionWithPKMAC() { ProofOfPossession pop = certReqMsg.getPopo(); if (pop.getType() == popSigningKey) { POPOSigningKey popoSign = POPOSigningKey.getInstance(pop.getObject()); return popoSign.getPoposkInput().getPublicKeyMAC() != null; } return false; }
/** * Return the certificate template contained in this message. * * @return a CertTemplate structure. */ public CertTemplate getCertTemplate() { return this.certReqMsg.getCertReq().getCertTemplate(); }
var Controls = function (controllable_object) { this.ref = controllable_object; }; Controls.prototype.next = function () { this.ref.foo(); } // .. var Carousel = function () { this.controls = new Controls(this); }; // ..
public CertificateRequestMessageBuilder setPublicKey(SubjectPublicKeyInfo publicKey) { if (publicKey != null) { templateBuilder.setPublicKey(publicKey); } return this; }
/** * Return the archive control type, one of: encryptedPrivKey,keyGenParameters,or archiveRemGenPrivKey. * * @return the archive control type. */ public int getArchiveType() { return pkiArchiveOptions.getType(); }
public RevocationDetailsBuilder setIssuer(X500Name issuer) { if (issuer != null) { templateBuilder.setIssuer(issuer); } return this; }
/** * Return whether or not this request message has a proof-of-possession field in it. * * @return true if proof-of-possession is present, false otherwise. */ public boolean hasProofOfPossession() { return this.certReqMsg.getPopo() != null; }
/** * Return the ASN.1 encoding of the certReqMsg we wrap. * * @return a byte array containing the binary encoding of the certReqMsg. * @throws IOException if there is an exception creating the encoding. */ public byte[] getEncoded() throws IOException { return certReqMsg.getEncoded(); } }
/** * Return whether this control contains enveloped data. * * @return true if the control contains enveloped data, false otherwise. */ public boolean isEnvelopedData() { EncryptedKey encKey = EncryptedKey.getInstance(pkiArchiveOptions.getValue()); return !encKey.isEncryptedValue(); }
public CertificateRequestMessage(CertReqMsg certReqMsg) { this.certReqMsg = certReqMsg; this.controls = certReqMsg.getCertReq().getControls(); }
/** * Return the certificate template contained in this message. * * @return a CertTemplate structure. */ public CertTemplate getCertTemplate() { return this.certReqMsg.getCertReq().getCertTemplate(); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); menu = new Controls(this); menu.getSomeView().setOnClickListener(this); setContentView(menu); }
public RevocationDetailsBuilder setPublicKey(SubjectPublicKeyInfo publicKey) { if (publicKey != null) { templateBuilder.setPublicKey(publicKey); } return this; }
/** * Return the archive control type, one of: encryptedPrivKey,keyGenParameters,or archiveRemGenPrivKey. * * @return the archive control type. */ public int getArchiveType() { return pkiArchiveOptions.getType(); }
public RevocationDetailsBuilder setIssuer(X500Name issuer) { if (issuer != null) { templateBuilder.setIssuer(issuer); } return this; }
public RevocationDetailsBuilder setPublicKey(SubjectPublicKeyInfo publicKey) { if (publicKey != null) { templateBuilder.setPublicKey(publicKey); } return this; }