public class MechanismInfo extends Object
| Constructor and Description |
|---|
MechanismInfo(CK_MECHANISM_INFO ckMechanismInfo)
Constructor taking a CK_MECHANISM_INFO object as data source.
|
MechanismInfo(long minKeySize,
long maxKeySize,
long flags) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearFlagBit(long flagMask)
Clear the given feature flag.
|
long |
getFlags() |
long |
getMaxKeySize()
Get the maximum key length supported by this mechanism.
|
long |
getMinKeySize()
Get the minimum key length supported by this mechanism.
|
boolean |
hasFlagBit(long flagMask) |
void |
setFlagBit(long flagMask)
Set the given feature flag.
|
boolean |
supports(MechanismInfo requiredFeatures)
Check, if this mechanism info has those flags set to true, which are set
in the given mechanism info.
|
String |
toString()
Returns the string representation of this object.
|
String |
toString(String indent) |
public MechanismInfo(CK_MECHANISM_INFO ckMechanismInfo)
ckMechanismInfo - The CK_MECHANISM_INFO object that provides the data.public MechanismInfo(long minKeySize,
long maxKeySize,
long flags)
minKeySize - The minimum key length supported by this mechanism.maxKeySize - The maximum key length supported by this mechanism.flags - The flag bit(s).public long getMinKeySize()
public long getMaxKeySize()
public long getFlags()
public boolean hasFlagBit(long flagMask)
public void setFlagBit(long flagMask)
flagMask - The mask of the flag bit(s).public void clearFlagBit(long flagMask)
flagMask - The mask of the flag bit(s).public boolean supports(MechanismInfo requiredFeatures)
requiredFeatures - The required features.public String toString()
Copyright © 2023. All rights reserved.