Top Description Fields Constructors Methods
sun.security.pkcs11

public final Class P11Util

extends Object
Class Inheritance
Imports
java.lang.ref.Cleaner, java.math.BigInteger, java.nio.ByteBuffer, .CharBuffer, java.nio.charset.Charset, java.security.*, sun.security.pkcs11.wrapper.PKCS11Exception

Collection of static utility methods.
Author
Andreas Sterbenz
Since
1.5

Field Summary

Modifier and TypeField and Description
public static final Cleaner
private static final char[]
private static final Object
private static volatile Provider
private static volatile Provider
private static volatile Provider

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static byte[]
concat(byte[] b1, byte[] b2)

pack-priv static long[]
concat(long[] b1, long[] b2)

pack-priv static byte[]
convert(byte[] input, int offset, int len)

pack-priv static char[]
encodePassword(char[] password, Charset cs, int nullTermBytes)

public static byte[]
private static Provider
getProvider(Provider p, String providerName, String className)

pack-priv static Provider
pack-priv static Provider
pack-priv static Provider
pack-priv static boolean
isNSS(Token token)

pack-priv static byte[]
sha1(byte[] data)

pack-priv static byte[]
subarray(byte[] b, int ofs, int len)

pack-priv static String
toString(byte[] b)

pack-priv static boolean
trySessionCancel(Token token, Session session, long flags)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cleanerback to summary
public static final Cleaner cleaner
hexDigitsback to summary
private static final char[] hexDigits
LOCKback to summary
private static final Object LOCK
sunback to summary
private static volatile Provider sun
sunJceback to summary
private static volatile Provider sunJce
sunRsaSignback to summary
private static volatile Provider sunRsaSign

Constructor Detail

P11Utilback to summary
private P11Util()

Method Detail

concatback to summary
pack-priv static byte[] concat(byte[] b1, byte[] b2)
concatback to summary
pack-priv static long[] concat(long[] b1, long[] b2)
convertback to summary
pack-priv static byte[] convert(byte[] input, int offset, int len)
encodePasswordback to summary
pack-priv static char[] encodePassword(char[] password, Charset cs, int nullTermBytes)
getMagnitudeback to summary
public static byte[] getMagnitude(BigInteger bi)
getProviderback to summary
private static Provider getProvider(Provider p, String providerName, String className)
Annotations
@SuppressWarnings:removal
getSunJceProviderback to summary
pack-priv static Provider getSunJceProvider()
getSunProviderback to summary
pack-priv static Provider getSunProvider()
getSunRsaSignProviderback to summary
pack-priv static Provider getSunRsaSignProvider()
isNSSback to summary
pack-priv static boolean isNSS(Token token)
sha1back to summary
pack-priv static byte[] sha1(byte[] data)
subarrayback to summary
pack-priv static byte[] subarray(byte[] b, int ofs, int len)
toStringback to summary
pack-priv static String toString(byte[] b)
trySessionCancelback to summary
pack-priv static boolean trySessionCancel(Token token, Session session, long flags) throws ProviderException