|
Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.crypto.asn1.ASN1Utils
public class ASN1Utils
ASN1 auxiliary routines for performing I/O and interconverting ASN.1 format to Java formats.
| Field Summary | |
|---|---|
static int[] |
attrTypeIDITU X.520 standard naming attributes arc. |
static int[] |
dds |
static int[] |
entrustIDEntrust OID arc. |
static int[] |
ianaIANA (Internet Assigned Numbers Authority) arc. |
static int[] |
netscapeIDNetscape OID arc. |
static int[] |
nistAlgorithmsNIST (National Institute of Standards and Technology) proposed algorithms arc. |
static int[] |
oiwAlgIDNIST Open Systems Implementation Workshop (OIW) arc. |
static int[] |
phaosIDPhaos OID arc. |
static int[] |
pkcsIDPKCS series arc. |
static int[] |
rsaIDRSA OID arc. |
static int[] |
xcmIDANSI X9.57 Certificate Management (aka "x9algorithms") arc. |
static int[] |
xecdsaIDANSI X9.62 ECDSA Object Identifier arc. |
static int[] |
xkaIDANSI X9.42 Key Agreement Object Identifier arc. |
| Method Summary | |
|---|---|
static ASN1Object |
addImplicitTag(ASN1Object o, int tag)Returns the same object but with a different tag (and the context-specific tag class). |
static int |
getTag(int tagOctet)Returns the tag contained in the given BER tag octet. |
static ASN1Object |
inputASN1Object(byte[] encoding) |
static ASN1Object |
inputASN1Object(java.io.InputStream is) |
static int |
inputBase128(java.io.InputStream is) |
static boolean |
isPrefix(int[] a, int[] b)Return true if a is a prefix of b. |
static int |
lengthBase128(int n) |
static int |
lengthBase256(int n) |
static void |
outputBase128(int n, java.io.OutputStream os)Outputs an integer in base 128, with as few bytes as possible, most significant byte first, with each byte except the last having its most significant bit set to 1. |
static void |
outputEndOfContents(java.io.OutputStream os) |
static void |
outputHeader(java.io.OutputStream os, int tag, int tagClass)Outputs a constructed, indefinite-length header. |
static void |
outputLengthBytes(java.io.OutputStream os, int n)Outputs the length bytes for a definite-length encoding an object of the specified length. |
static byte[] |
toBytesBase128(int n) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int[] rsaID
public static final int[] netscapeID
public static final int[] entrustID
public static final int[] phaosID
public static final int[] pkcsID
public static final int[] attrTypeID
public static final int[] oiwAlgID
public static final int[] xcmID
public static final int[] xkaID
public static final int[] xecdsaID
public static final int[] iana
public static final int[] nistAlgorithms
public static final int[] dds
| Method Detail |
|---|
public static ASN1Object inputASN1Object(java.io.InputStream is)
throws java.io.IOException
java.io.IOException
public static ASN1Object inputASN1Object(byte[] encoding)
throws java.io.IOException
java.io.IOException
public static void outputLengthBytes(java.io.OutputStream os,
int n)
throws java.io.IOException
os - the output streamn - the length (must be nonnegative)java.io.IOException
public static void outputBase128(int n,
java.io.OutputStream os)
throws java.io.IOException
This is used for encoding high tag numbers, and for most of the components of an ASN.1 object identifier.
n - the value to output, which must be nonnegativeos - the output streamjava.io.IOExceptionpublic static byte[] toBytesBase128(int n)
public static int inputBase128(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic static int lengthBase128(int n)
public static int lengthBase256(int n)
public static boolean isPrefix(int[] a,
int[] b)
public static void outputHeader(java.io.OutputStream os,
int tag,
int tagClass)
throws java.io.IOException
java.io.IOException
public static void outputEndOfContents(java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionpublic static int getTag(int tagOctet)
public static ASN1Object addImplicitTag(ASN1Object o,
int tag)
|
Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||