Package org.xipki.pkcs11.wrapper
Class ModuleInfo
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.ModuleInfo
-
public class ModuleInfo extends java.lang.ObjectObjects of this class provide information about a PKCS#11 module; i.e. the driver for a specific token.- Author:
- Karl Scheibelhofer (SIC), Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description ModuleInfo(CK_INFO ckInfo)Constructor taking the CK_INFO object of the token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersiongetCryptokiVersion()Get the version of PKCS#11 that this module claims to be compliant to.java.lang.StringgetLibraryDescription()Get a short description of this module.VersiongetLibraryVersion()Get the version of this PKCS#11 module.java.lang.StringgetManufacturerID()Get the identifier of the manufacturer.java.lang.StringtoString()Returns the string representation of this object.
-
-
-
Constructor Detail
-
ModuleInfo
public ModuleInfo(CK_INFO ckInfo)
Constructor taking the CK_INFO object of the token.- Parameters:
ckInfo- The info object as got from PKCS11.C_GetInfo().
-
-
Method Detail
-
getCryptokiVersion
public Version getCryptokiVersion()
Get the version of PKCS#11 that this module claims to be compliant to.- Returns:
- The version object.
-
getManufacturerID
public java.lang.String getManufacturerID()
Get the identifier of the manufacturer.- Returns:
- A string identifying the manufacturer of this module.
-
getLibraryDescription
public java.lang.String getLibraryDescription()
Get a short description of this module.- Returns:
- A string describing the module.
-
getLibraryVersion
public Version getLibraryVersion()
Get the version of this PKCS#11 module.- Returns:
- The version of this module.
-
toString
public java.lang.String toString()
Returns the string representation of this object.- Overrides:
toStringin classjava.lang.Object- Returns:
- the string representation of object
-
-