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