iaik.tc.asn1.fips
Class FIPSLevel

Object
  extended by BaseStructure
      extended by FIPSLevel

public class FIPSLevel
extends BaseStructure

FIPSLevel ASN.1 structure.

 FIPSLevel ::= SEQUENCE {
   version IA5STRING, -- "140-1" or "140-2"
   level SecurityLevel,
   plus BOOLEAN DEFAULT FALSE }
 


Field Summary
static IA5String version_140_1
           
static IA5String version_140_2
           
 
Constructor Summary
FIPSLevel()
           
FIPSLevel(ASN1Object obj)
           
FIPSLevel(IA5String version, SecurityLevel level, BOOLEAN plus)
           
 
Method Summary
 SecurityLevel getLevel()
           
 BOOLEAN getPlus()
           
 IA5String getVersion()
           
static FIPSLevel parse(Properties prop, String prefix)
           
 void setPlus(BOOLEAN plus)
           
 void setSecurityLevel(SecurityLevel level)
           
 void setVersion(IA5String version)
           
 ASN1Object toASN1Object()
           
 String toString()
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

version_140_1

public static final IA5String version_140_1

version_140_2

public static final IA5String version_140_2
Constructor Detail

FIPSLevel

public FIPSLevel()

FIPSLevel

public FIPSLevel(IA5String version,
                 SecurityLevel level,
                 BOOLEAN plus)

FIPSLevel

public FIPSLevel(ASN1Object obj)
          throws CodingException
Throws:
CodingException
Method Detail

toASN1Object

public ASN1Object toASN1Object()
                        throws CodingException
Specified by:
toASN1Object in class BaseStructure
Throws:
CodingException

setVersion

public void setVersion(IA5String version)

setSecurityLevel

public void setSecurityLevel(SecurityLevel level)

setPlus

public void setPlus(BOOLEAN plus)

getVersion

public IA5String getVersion()

getLevel

public SecurityLevel getLevel()

getPlus

public BOOLEAN getPlus()

parse

public static FIPSLevel parse(Properties prop,
                              String prefix)

toString

public String toString()
Overrides:
toString in class Object