public static final class

Secmod.Module

extends Object
java.lang.Object
   ↳ sun.security.pkcs11.Secmod.Module

Class Overview

A representation of one PKCS#11 slot in a PKCS#11 module.

Summary

Public Methods
synchronized String getConfiguration()
Get the configuration for this module.
String getLibraryName()
Return the pathname of the native library that implements this module.
synchronized Provider getProvider()
Returns the provider instance that is associated with this module.
Secmod.ModuleType getType()
Returns the type of this module.
synchronized void setConfiguration(String config)
Set the configuration for this module.
String toString()
Returns a string representation of the object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public synchronized String getConfiguration ()

Get the configuration for this module. This is a string in the SunPKCS11 configuration format. It can be customized with additional options and then made current using the setConfiguration() method.

public String getLibraryName ()

Return the pathname of the native library that implements this module. For example, /usr/lib/libpkcs11.so.

public synchronized Provider getProvider ()

Returns the provider instance that is associated with this module. The first call to this method creates the provider instance.

public Secmod.ModuleType getType ()

Returns the type of this module.

public synchronized void setConfiguration (String config)

Set the configuration for this module.

Throws
IllegalStateException if the associated provider instance has already been created.

public String toString ()

Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
  • a string representation of the object.