JCaosLib
V1.4.4.0

com.dreamsecurity.jcaos.cms
Class Attribute

java.lang.Object
  extended bycom.dreamsecurity.jcaos.cms.Attribute

public class Attribute
extends java.lang.Object

 Attribute ::= SEQUENCE {
 	 	attrType OBJECT IDENTIFIER,
 	 	attrValues SET OF AttributeValue }
 


Method Summary
 byte[] getEncoded()
          DER ÀÎÄÚµùÇÑ´Ù.
static Attribute getInstance(byte[] data)
          ¼Ó¼º Á¤º¸¸¦ ÀÔ·ÂÇÏ¿© Attribute °´Ã¼·Î º¯È¯ÇÑ´Ù.
static Attribute getInstance(java.lang.Object o)
          ¼Ó¼º Á¤º¸¸¦ ÀÔ·ÂÇÏ¿© Attribute °´Ã¼·Î º¯È¯ÇÑ´Ù.
 java.lang.String getType()
          ¼Ó¼º Á¾·ù¸¦ È®ÀÎÇÑ´Ù.
 byte[] getValue(int index)
          ÇØ´ç index¿¡ ´ëÇÑ ¼Ó¼º °ªÀ» ȹµæÇÑ´Ù.
 int getValueSize()
          ¼Ó¼º °ª °³¼ö¸¦ È®ÀÎÇÑ´Ù.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Attribute getInstance(byte[] data)
                             throws java.io.IOException
¼Ó¼º Á¤º¸¸¦ ÀÔ·ÂÇÏ¿© Attribute °´Ã¼·Î º¯È¯ÇÑ´Ù.

Parameters:
data - DER ÀÎÄÚµùµÈ ÇüÅÂÀÇ ¼Ó¼º Á¤º¸
Throws:
java.io.IOException - µðÄÚµù ½ÇÆÐ½Ã ¹ß»ý

getInstance

public static Attribute getInstance(java.lang.Object o)
                             throws java.io.IOException
¼Ó¼º Á¤º¸¸¦ ÀÔ·ÂÇÏ¿© Attribute °´Ã¼·Î º¯È¯ÇÑ´Ù.

Parameters:
o - ¼Ó¼º Á¤º¸ (DER ÀÎÄÚµùµÈ °ª ¶Ç´Â ASN.1 ÇüÅÂ)
Throws:
java.io.IOException - µðÄÚµù ½ÇÆÐ½Ã ¹ß»ý

getEncoded

public byte[] getEncoded()
DER ÀÎÄÚµùÇÑ´Ù.

Returns:
DER ÀÎÄÚµùÇÑ °ª

getType

public java.lang.String getType()
¼Ó¼º Á¾·ù¸¦ È®ÀÎÇÑ´Ù.

Returns:
OID Çü½ÄÀÇ ¼Ó¼º Á¾·ù

getValueSize

public int getValueSize()
¼Ó¼º °ª °³¼ö¸¦ È®ÀÎÇÑ´Ù.

Returns:
¼Ó¼º °ª °³¼ö

getValue

public byte[] getValue(int index)
ÇØ´ç index¿¡ ´ëÇÑ ¼Ó¼º °ªÀ» ȹµæÇÑ´Ù.

Parameters:
index - ȹµæÇϰíÀÚÇÏ´Â index
Returns:
¼Ó¼º °ª

JCaosLib
V1.4.4.0


Copyright ¨Ï2007-2011 DreamSecurity Co.,Ltd . All rights reserved