All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.oer.its.LinkageValue Maven / Gradle / Ivy

Go to download

The Bouncy Castle Java APIs for ASN.1 extension and utility APIs used to support bcpkix and bctls. This jar contains APIs for JDK 1.5 and up.

The newest version!
package org.bouncycastle.oer.its;

import java.io.IOException;

import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.ASN1OctetString;
import org.bouncycastle.asn1.DEROctetString;

/**
 * 
 *     LinkageValue ::= OCTET STRING (SIZE(9))
 * 
*/ public class LinkageValue extends DEROctetString { public LinkageValue(byte[] string) { super(string); } public LinkageValue(ASN1Encodable obj) throws IOException { super(obj); } public static LinkageValue getInstance(Object src) { if (src instanceof LinkageValue) { return (LinkageValue)src; } else if (src != null) { return new LinkageValue(ASN1OctetString.getInstance(src).getOctets()); } return null; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy