public class AsnIO
extends java.lang.Object
Title: ESYA
Description:
Copyright: TUBITAK Copyright (c) 2004
Company: TUBITAK UEKAE
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AsnIO() |
| Modifier and Type | Method and Description |
|---|---|
static void |
arraydenBase64Oku(com.objsys.asn1j.runtime.Asn1Type aAsn1,
byte[] aVeri)
Read Asn1Type from a byte array
|
static com.objsys.asn1j.runtime.Asn1Type |
arraydenOku(com.objsys.asn1j.runtime.Asn1Type aAsn1,
byte[] aVeri)
Read Asn1Type from a byte array
|
static byte[] |
derEncode(com.objsys.asn1j.runtime.Asn1Type asn1Type)
Encodes the given object
|
static com.objsys.asn1j.runtime.Asn1Type |
derOku(com.objsys.asn1j.runtime.Asn1Type aAsn1,
com.objsys.asn1j.runtime.Asn1DerDecodeBuffer decBuf)
Read Asn1Type from a byte array
|
static com.objsys.asn1j.runtime.Asn1Type |
derOku(com.objsys.asn1j.runtime.Asn1Type aAsn1,
byte[] aDer)
Read Asn1Type from a byte array
|
static void |
dosyaBase64yaz(com.objsys.asn1j.runtime.Asn1Type aAsn1,
java.lang.String aFile)
Write Asn1Type to the file as Base64
|
static com.objsys.asn1j.runtime.Asn1Type |
dosyadanOKU(com.objsys.asn1j.runtime.Asn1Type aAsn1,
java.lang.String aFile)
Read from file as Asn1Type
|
static byte[] |
dosyadanOKU(java.lang.String filePath)
Deprecated.
use FileUtil readBytes
|
static void |
dosyayaz(com.objsys.asn1j.runtime.Asn1Type aAsn1,
java.lang.String aFile)
Write Asn1Type to the file
|
static void |
dosyayaz(byte[] aSonuc,
java.lang.String aFileName)
Deprecated.
use FileUtil writeBytes
|
static java.lang.String |
getFormattedAsn(com.objsys.asn1j.runtime.Asn1Type asn1Type)
Get Asn1Type as String
|
static byte[] |
streamOku(java.io.InputStream is)
Read from an input stream
|
public static void dosyayaz(byte[] aSonuc,
java.lang.String aFileName)
throws java.io.IOException
aSonuc - Byte array that will be writtenaFileName - File that byte array will be written on itjava.io.IOExceptionpublic static void dosyayaz(com.objsys.asn1j.runtime.Asn1Type aAsn1,
java.lang.String aFile)
throws com.objsys.asn1j.runtime.Asn1Exception,
java.io.IOException
aAsn1 - Asn1Type that will be writtenaFile - File that byte array will be written on itjava.io.IOExceptioncom.objsys.asn1j.runtime.Asn1Exceptionpublic static void dosyaBase64yaz(com.objsys.asn1j.runtime.Asn1Type aAsn1,
java.lang.String aFile)
throws com.objsys.asn1j.runtime.Asn1Exception,
java.io.IOException
aAsn1 - Asn1Type that will be writtenaFile - File that byte array will be written on itjava.io.IOExceptioncom.objsys.asn1j.runtime.Asn1Exceptionpublic static byte[] dosyadanOKU(java.lang.String filePath)
throws java.io.IOException
filePath - File that will be readjava.io.IOExceptionpublic static com.objsys.asn1j.runtime.Asn1Type derOku(com.objsys.asn1j.runtime.Asn1Type aAsn1,
byte[] aDer)
throws com.objsys.asn1j.runtime.Asn1Exception,
java.io.IOException
aAsn1 - Asn1Type that will be readaDer - Byte array which is Der Encodedjava.io.IOExceptioncom.objsys.asn1j.runtime.Asn1Exceptionpublic static com.objsys.asn1j.runtime.Asn1Type derOku(com.objsys.asn1j.runtime.Asn1Type aAsn1,
com.objsys.asn1j.runtime.Asn1DerDecodeBuffer decBuf)
throws com.objsys.asn1j.runtime.Asn1Exception,
java.io.IOException
aAsn1 - Asn1Type that will be readdecBuf - Byte array which is Der Encodedjava.io.IOExceptioncom.objsys.asn1j.runtime.Asn1Exceptionpublic static com.objsys.asn1j.runtime.Asn1Type arraydenOku(com.objsys.asn1j.runtime.Asn1Type aAsn1,
byte[] aVeri)
throws com.objsys.asn1j.runtime.Asn1Exception,
java.io.IOException
aAsn1 - Asn1Type that will be readaVeri - Byte array which is Der or Base64 Encodedjava.io.IOExceptioncom.objsys.asn1j.runtime.Asn1Exceptionpublic static void arraydenBase64Oku(com.objsys.asn1j.runtime.Asn1Type aAsn1,
byte[] aVeri)
throws com.objsys.asn1j.runtime.Asn1Exception,
java.io.IOException
aAsn1 - Asn1Type that will be readaVeri - Byte array which is Base64 Encodedjava.io.IOExceptioncom.objsys.asn1j.runtime.Asn1Exceptionpublic static byte[] streamOku(java.io.InputStream is)
throws java.io.IOException
is - InputStream that will be readjava.io.IOExceptionpublic static com.objsys.asn1j.runtime.Asn1Type dosyadanOKU(com.objsys.asn1j.runtime.Asn1Type aAsn1,
java.lang.String aFile)
throws com.objsys.asn1j.runtime.Asn1Exception,
java.io.IOException
aAsn1 - Asn1Type that will be decodedaFile - File that will be readjava.io.IOExceptioncom.objsys.asn1j.runtime.Asn1Exceptionpublic static java.lang.String getFormattedAsn(com.objsys.asn1j.runtime.Asn1Type asn1Type)
asn1Type - Asn1Type that will be converted to stringpublic static byte[] derEncode(com.objsys.asn1j.runtime.Asn1Type asn1Type)
asn1Type - Asn1Type that will be encodedCopyright © 2025. All rights reserved.