APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.pkcs11

pack-priv final Class Config

Additional top-level class in compilation unit: ConfigurationException.

extends Object
Class Inheritance
Imports
java.io.*, java.math.BigInteger, java.nio.charset.StandardCharsets, java.util.*, sun.security.util.PropertyExpander, sun.security.pkcs11.wrapper.*

Configuration container and file parsing.
Author
Andreas Sterbenz
Since
1.5

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private static final CK_ATTRIBUTE[]
private Token.CTSVariant
private static final boolean
private String
private boolean
private Set<Long>
private Set<Long>
pack-priv static final int
pack-priv static final int
pack-priv static final int
private boolean
private final String
private String
private int
private int
private boolean
private String
private String
private String
private Secmod.DbMode
private String
private String
private boolean
private boolean
private String
private boolean
private boolean
private boolean
private Set<String>
private Reader
private int
private int
private boolean
private int
private int
private StreamTokenizer
private static final boolean
private TemplateManager
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
checkDup(String keyword)

private long
private CK_ATTRIBUTE
decodeAttributeValue(long id, String value)

private byte[]
private int
private ConfigurationException
private ConfigurationException
private ConfigurationException
private static String
expand(final String s)

pack-priv boolean
pack-priv boolean
pack-priv Token.CTSVariant
pack-priv String
pack-priv boolean
pack-priv boolean
pack-priv String
pack-priv String
pack-priv int
pack-priv int
pack-priv boolean
pack-priv String
pack-priv String
pack-priv String
pack-priv Secmod.DbMode
pack-priv String
pack-priv String
public boolean
pack-priv boolean
pack-priv String
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv int
pack-priv int
pack-priv boolean
pack-priv int
pack-priv int
pack-priv TemplateManager
pack-priv boolean
private static boolean
private boolean
isCloseBraces(int token)

pack-priv boolean
isEnabled(long m)

private static boolean
private int
private void
private void
private boolean
private boolean
private void
private void
private void
private void
private <E extends Enum<E>> E
parseEnumEntry(Class<E> enumClass, String keyword)

private void
private void
private int
private long
private String
private String
private long
private Set<Long>
private void
private long
private void
private String
private void
private void
private String
private String
private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allowLegacyback to summary
private boolean allowLegacy
allowSingleThreadedModulesback to summary
private boolean allowSingleThreadedModules
CK_A0back to summary
private static final CK_ATTRIBUTE[] CK_A0
ctsVariantback to summary
private Token.CTSVariant ctsVariant
DEBUGback to summary
private static final boolean DEBUG
descriptionback to summary
private String description
destroyTokenAfterLogoutback to summary
private boolean destroyTokenAfterLogout
disabledMechanismsback to summary
private Set<Long> disabledMechanisms
enabledMechanismsback to summary
private Set<Long> enabledMechanisms
ERR_HALTback to summary
pack-priv static final int ERR_HALT
ERR_IGNORE_ALLback to summary
pack-priv static final int ERR_IGNORE_ALL
ERR_IGNORE_LIBback to summary
pack-priv static final int ERR_IGNORE_LIB
explicitCancelback to summary
private boolean explicitCancel
filenameback to summary
private final String filename
functionListback to summary
private String functionList
handleStartupErrorsback to summary
private int handleStartupErrors
insertionCheckIntervalback to summary
private int insertionCheckInterval
keyStoreCompatibilityModeback to summary
private boolean keyStoreCompatibilityMode
libraryback to summary
private String library
nameback to summary
private String name
nssArgsback to summary
private String nssArgs
nssDbModeback to summary
private Secmod.DbMode nssDbMode
nssLibraryDirectoryback to summary
private String nssLibraryDirectory
nssModuleback to summary
private String nssModule
nssNetscapeDbWorkaroundback to summary
private boolean nssNetscapeDbWorkaround
nssOptimizeSpaceback to summary
private boolean nssOptimizeSpace
nssSecmodDirectoryback to summary
private String nssSecmodDirectory
nssUseSecmodback to summary
private boolean nssUseSecmod
nssUseSecmodTrustback to summary
private boolean nssUseSecmodTrust
omitInitializeback to summary
private boolean omitInitialize
parsedKeywordsback to summary
private Set<String> parsedKeywords
readerback to summary
private Reader reader
resourceCleanerLongIntervalback to summary
private int resourceCleanerLongInterval
resourceCleanerShortIntervalback to summary
private int resourceCleanerShortInterval
showInfoback to summary
private boolean showInfo
slotIDback to summary
private int slotID
slotListIndexback to summary
private int slotListIndex
stback to summary
private StreamTokenizer st
staticAllowSingleThreadedModulesback to summary
private static final boolean staticAllowSingleThreadedModules
templateManagerback to summary
private TemplateManager templateManager
useEcX963Encodingback to summary
private boolean useEcX963Encoding

Constructor Detail

Configback to summary
pack-priv Config(String fn) throws IOException

Method Detail

checkDupback to summary
private void checkDup(String keyword) throws IOException
decodeAttributeNameback to summary
private long decodeAttributeName(String name) throws IOException
decodeAttributeValueback to summary
private CK_ATTRIBUTE decodeAttributeValue(long id, String value) throws IOException
decodeByteArrayback to summary
private byte[] decodeByteArray(String str) throws IOException
decodeNumberback to summary
private int decodeNumber(String str) throws IOException
excLineback to summary
private ConfigurationException excLine(String msg)
excLineback to summary
private ConfigurationException excLine(String msg, Throwable e)
excTokenback to summary
private ConfigurationException excToken(String msg)
expandback to summary
private static String expand(final String s) throws IOException
getAllowLegacyback to summary
pack-priv boolean getAllowLegacy()
getAllowSingleThreadedModulesback to summary
pack-priv boolean getAllowSingleThreadedModules()
getCTSVariantback to summary
pack-priv Token.CTSVariant getCTSVariant()
getDescriptionback to summary
pack-priv String getDescription()
getDestroyTokenAfterLogoutback to summary
pack-priv boolean getDestroyTokenAfterLogout()
getExplicitCancelback to summary
pack-priv boolean getExplicitCancel()
getFileNameback to summary
pack-priv String getFileName()
getFunctionListback to summary
pack-priv String getFunctionList()
getHandleStartupErrorsback to summary
pack-priv int getHandleStartupErrors()
getInsertionCheckIntervalback to summary
pack-priv int getInsertionCheckInterval()
getKeyStoreCompatibilityModeback to summary
pack-priv boolean getKeyStoreCompatibilityMode()
getLibraryback to summary
pack-priv String getLibrary()
getNameback to summary
pack-priv String getName()
getNssArgsback to summary
pack-priv String getNssArgs()
getNssDbModeback to summary
pack-priv Secmod.DbMode getNssDbMode()
getNssLibraryDirectoryback to summary
pack-priv String getNssLibraryDirectory()
getNssModuleback to summary
pack-priv String getNssModule()
getNssNetscapeDbWorkaroundback to summary
public boolean getNssNetscapeDbWorkaround()
getNssOptimizeSpaceback to summary
pack-priv boolean getNssOptimizeSpace()
getNssSecmodDirectoryback to summary
pack-priv String getNssSecmodDirectory()
getNssUseSecmodback to summary
pack-priv boolean getNssUseSecmod()
getNssUseSecmodTrustback to summary
pack-priv boolean getNssUseSecmodTrust()
getOmitInitializeback to summary
pack-priv boolean getOmitInitialize()
getResourceCleanerLongIntervalback to summary
pack-priv int getResourceCleanerLongInterval()
getResourceCleanerShortIntervalback to summary
pack-priv int getResourceCleanerShortInterval()
getShowInfoback to summary
pack-priv boolean getShowInfo()
getSlotIDback to summary
pack-priv int getSlotID()
getSlotListIndexback to summary
pack-priv int getSlotListIndex()
getTemplateManagerback to summary
pack-priv TemplateManager getTemplateManager()
getUseEcX963Encodingback to summary
pack-priv boolean getUseEcX963Encoding()
isByteArrayback to summary
private static boolean isByteArray(String val)
isCloseBracesback to summary
private boolean isCloseBraces(int token)
isEnabledback to summary
pack-priv boolean isEnabled(long m)
isNumberback to summary
private static boolean isNumber(String s)
nextTokenback to summary
private int nextToken() throws IOException
parseback to summary
private void parse() throws IOException
parseAttributesback to summary
private void parseAttributes(String keyword) throws IOException
parseBooleanback to summary
private boolean parseBoolean() throws IOException
parseBooleanEntryback to summary
private boolean parseBooleanEntry(String keyword) throws IOException
parseCommaback to summary
private void parseComma() throws IOException
parseDescriptionback to summary
private void parseDescription(String keyword) throws IOException
parseDisabledMechanismsback to summary
private void parseDisabledMechanisms(String keyword) throws IOException
parseEnabledMechanismsback to summary
private void parseEnabledMechanisms(String keyword) throws IOException
parseEnumEntryback to summary
private <E extends Enum<E>> E parseEnumEntry(Class<E> enumClass, String keyword) throws IOException
parseEqualsback to summary
private void parseEquals() throws IOException
parseHandleStartupErrorsback to summary
private void parseHandleStartupErrors(String keyword) throws IOException
parseIntegerEntryback to summary
private int parseIntegerEntry(String keyword) throws IOException
parseKeyAlgorithmback to summary
private long parseKeyAlgorithm() throws IOException
parseLibraryback to summary
private String parseLibrary(String keyword) throws IOException
parseLineback to summary
private String parseLine() throws IOException
parseMechanismback to summary
private long parseMechanism(String mech) throws IOException
parseMechanismsback to summary
private Set<Long> parseMechanisms(String keyword) throws IOException
parseNSSArgsback to summary
private void parseNSSArgs(String keyword) throws IOException
parseObjectClassback to summary
private long parseObjectClass() throws IOException
parseOpenBracesback to summary
private void parseOpenBraces() throws IOException
parseOperationback to summary
private String parseOperation() throws IOException
parseSlotIDback to summary
private void parseSlotID(String keyword) throws IOException
parseSlotListIndexback to summary
private void parseSlotListIndex(String keyword) throws IOException
parseStringEntryback to summary
private String parseStringEntry(String keyword) throws IOException
parseWordback to summary
private String parseWord() throws IOException
setCompatibilityAttributesback to summary
private void setCompatibilityAttributes()
setupTokenizerback to summary
private void setupTokenizer()