Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2014-2015 Regents of the University of California.

Author(s):
Jeff Thompson <jefft0@remap.ucla.edu>
From code in ndn-cxx by Yingdi Yu <yingdi@cs.ucla.edu> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. A copy of the GNU Lesser General Public License is in the file COPYING.
 
 
 package net.named_data.jndn.security.certificate;
 
A CertificateExtension represents the Extension entry in a certificate.
 
 public class CertificateExtension {
  
Create a new CertificateExtension.

Parameters:
oid The oid of subject description entry.
isCritical If true, the extension must be handled.
value The extension value.
 
   public CertificateExtension(String oidboolean isCriticalBlob value)
   {
      = new OID(oid);
      = isCritical;
      = value;
   }

  
Create a new CertificateExtension.

Parameters:
oid The oid of subject description entry.
isCritical If true, the extension must be handled.
value The extension value.
 
   public CertificateExtension(OID oidboolean isCriticalBlob value)
   {
      = oid;
      = isCritical;
      = value;
   }

  
Encode the object into DER syntax tree.

Returns:
The encoded DER syntax tree.
 
   public final DerNode
   toDer() throws DerEncodingException
   {
     DerSequence root = new DerSequence();
 
     DerOid extensionId = new DerOid();
     DerBoolean isCritical = new DerBoolean();
     DerOctetString extensionValue = new DerOctetString(.buf());
 
     root.addChild(extensionId);
     root.addChild(isCritical);
     root.addChild(extensionValue);
 
     root.getSize();
 
     return root;
   }
 
   public final Blob
   {
     return toDer().encode();
   }
 
   public final OID
   getOid() { return ; }
 
   public final boolean
   getIsCritical() { return ; }
 
   public final Blob
   getValue() { return ; }
 
   protected final OID extensionId_;
  protected final boolean isCritical_;
  protected final Blob extensionValue_;
New to GrepCode? Check out our FAQ X