|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensc.util.DestroyableChild
org.opensc.pkcs11.wrap.PKCS11Object
public class PKCS11Object
| Field Summary | |
|---|---|
protected static int |
CKA_AC_ISSUER
|
protected static int |
CKA_ALWAYS_SENSITIVE
|
protected static int |
CKA_APPLICATION
|
protected static int |
CKA_ATTR_TYPES
|
protected static int |
CKA_BASE
|
protected static int |
CKA_CERTIFICATE_CATEGORY
|
protected static int |
CKA_CERTIFICATE_TYPE
|
protected static int |
CKA_CHECK_VALUE
|
protected static int |
CKA_CLASS
|
protected static int |
CKA_COEFFICIENT
|
protected static int |
CKA_DECRYPT
|
protected static int |
CKA_DERIVE
|
protected static int |
CKA_ENCRYPT
|
protected static int |
CKA_END_DATE
|
protected static int |
CKA_EXPONENT_1
|
protected static int |
CKA_EXPONENT_2
|
protected static int |
CKA_EXTRACTABLE
|
protected static int |
CKA_HASH_OF_ISSUER_PUBLIC_KEY
|
protected static int |
CKA_HASH_OF_SUBJECT_PUBLIC_KEY
|
protected static int |
CKA_ID
|
protected static int |
CKA_ISSUER
|
protected static int |
CKA_JAVA_MIDP_SECURITY_DOMAIN
|
protected static int |
CKA_KEY_TYPE
|
protected static int |
CKA_LABEL
|
protected static int |
CKA_LOCAL
|
protected static int |
CKA_MODULUS
|
protected static int |
CKA_MODULUS_BITS
|
protected static int |
CKA_NEVER_EXTRACTABLE
|
protected static int |
CKA_OBJECT_ID
|
protected static int |
CKA_OWNER
|
protected static int |
CKA_PRIME
|
protected static int |
CKA_PRIME_1
|
protected static int |
CKA_PRIME_2
|
protected static int |
CKA_PRIME_BITS
|
protected static int |
CKA_PRIVATE
|
protected static int |
CKA_PRIVATE_EXPONENT
|
protected static int |
CKA_PUBLIC_EXPONENT
|
protected static int |
CKA_SENSITIVE
|
protected static int |
CKA_SERIAL_NUMBER
|
protected static int |
CKA_SIGN
|
protected static int |
CKA_SIGN_RECOVER
|
protected static int |
CKA_START_DATE
|
protected static int |
CKA_SUB_PRIME_BITS
|
protected static int |
CKA_SUBJECT
|
protected static int |
CKA_SUBPRIME
|
protected static int |
CKA_TOKEN
|
protected static int |
CKA_TRUSTED
|
protected static int |
CKA_UNWRAP
|
protected static int |
CKA_URL
|
protected static int |
CKA_VALUE
|
protected static int |
CKA_VALUE_BITS
|
protected static int |
CKA_VALUE_LEN
|
protected static int |
CKA_VERIFY
|
protected static int |
CKA_VERIFY_RECOVER
|
protected static int |
CKA_WRAP
|
protected static int |
CKO_CERTIFICATE
|
protected static int |
CKO_PRIVATE_KEY
|
protected static int |
CKO_PUBLIC_KEY
|
protected static int |
CKO_SECRET_KEY
|
protected long |
handle
The C handle of the object. |
protected long |
hsession
The C handle of the session. |
protected long |
pvh
The C handle of the provider. |
protected long |
shandle
The C handle of the slot. |
| Constructor Summary | |
|---|---|
protected |
PKCS11Object(PKCS11Session session,
long handle)
Protected contructor used by subclasses. |
| Method Summary | |
|---|---|
void |
destroy()
|
protected static long[] |
enumRawObjects(PKCS11Session session,
int pkcs11_cls)
Just a small wrapper atround the native function. |
PKCS11Mechanism[] |
getAllowedMechanisms()
Just a small wrapper atround the native function. |
protected boolean |
getBooleanAttribute(int att)
Just a small wrapper atround the native function. |
protected static boolean |
getBooleanAttribute(PKCS11Session session,
long handle,
int att)
Just a small wrapper atround the native function. |
long |
getHandle()
|
int |
getId()
|
String |
getLabel()
|
PKCS11Provider |
getProvider()
|
long |
getPvh()
|
protected byte[] |
getRawAttribute(int att)
Just a small wrapper atround the native function. |
long |
getSessionHandle()
|
long |
getSlotHandle()
|
protected int |
getULongAttribute(int att)
Just a small wrapper atround the native function. |
protected static int |
getULongAttribute(PKCS11Session session,
long handle,
int att)
Just a small wrapper atround the native function. |
| Methods inherited from class org.opensc.util.DestroyableChild |
|---|
getParent, isDestroyed, unlink |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.security.auth.Destroyable |
|---|
isDestroyed |
| Field Detail |
|---|
protected long pvh
protected long shandle
protected long hsession
protected long handle
protected static final int CKO_CERTIFICATE
protected static final int CKO_PUBLIC_KEY
protected static final int CKO_PRIVATE_KEY
protected static final int CKO_SECRET_KEY
protected static final int CKA_CLASS
protected static final int CKA_TOKEN
protected static final int CKA_PRIVATE
protected static final int CKA_LABEL
protected static final int CKA_APPLICATION
protected static final int CKA_VALUE
protected static final int CKA_OBJECT_ID
protected static final int CKA_CERTIFICATE_TYPE
protected static final int CKA_ISSUER
protected static final int CKA_SERIAL_NUMBER
protected static final int CKA_AC_ISSUER
protected static final int CKA_OWNER
protected static final int CKA_ATTR_TYPES
protected static final int CKA_TRUSTED
protected static final int CKA_CERTIFICATE_CATEGORY
protected static final int CKA_JAVA_MIDP_SECURITY_DOMAIN
protected static final int CKA_URL
protected static final int CKA_HASH_OF_SUBJECT_PUBLIC_KEY
protected static final int CKA_HASH_OF_ISSUER_PUBLIC_KEY
protected static final int CKA_CHECK_VALUE
protected static final int CKA_KEY_TYPE
protected static final int CKA_SUBJECT
protected static final int CKA_ID
protected static final int CKA_SENSITIVE
protected static final int CKA_ENCRYPT
protected static final int CKA_DECRYPT
protected static final int CKA_WRAP
protected static final int CKA_UNWRAP
protected static final int CKA_SIGN
protected static final int CKA_SIGN_RECOVER
protected static final int CKA_VERIFY
protected static final int CKA_VERIFY_RECOVER
protected static final int CKA_DERIVE
protected static final int CKA_START_DATE
protected static final int CKA_END_DATE
protected static final int CKA_MODULUS
protected static final int CKA_MODULUS_BITS
protected static final int CKA_PUBLIC_EXPONENT
protected static final int CKA_PRIVATE_EXPONENT
protected static final int CKA_PRIME_1
protected static final int CKA_PRIME_2
protected static final int CKA_EXPONENT_1
protected static final int CKA_EXPONENT_2
protected static final int CKA_COEFFICIENT
protected static final int CKA_PRIME
protected static final int CKA_SUBPRIME
protected static final int CKA_BASE
protected static final int CKA_PRIME_BITS
protected static final int CKA_SUB_PRIME_BITS
protected static final int CKA_VALUE_BITS
protected static final int CKA_VALUE_LEN
protected static final int CKA_EXTRACTABLE
protected static final int CKA_LOCAL
protected static final int CKA_NEVER_EXTRACTABLE
protected static final int CKA_ALWAYS_SENSITIVE
| Constructor Detail |
|---|
protected PKCS11Object(PKCS11Session session,
long handle)
throws PKCS11Exception
PKCS11Exception| Method Detail |
|---|
protected byte[] getRawAttribute(int att)
throws PKCS11Exception
att - The attribute type to receive.
PKCS11Exception - Upon errors of the underlying PKCS#11 module.
protected int getULongAttribute(int att)
throws PKCS11Exception
att - The attribute type to receive.
PKCS11Exception - Upon errors of the underlying PKCS#11 module.
protected static int getULongAttribute(PKCS11Session session,
long handle,
int att)
throws PKCS11Exception
att - The attribute type to receive.
PKCS11Exception - Upon errors of the underlying PKCS#11 module.
protected boolean getBooleanAttribute(int att)
throws PKCS11Exception
att - The attribute type to receive.
PKCS11Exception - Upon errors of the underlying PKCS#11 module.
protected static boolean getBooleanAttribute(PKCS11Session session,
long handle,
int att)
throws PKCS11Exception
att - The attribute type to receive.
PKCS11Exception - Upon errors of the underlying PKCS#11 module.
protected static long[] enumRawObjects(PKCS11Session session,
int pkcs11_cls)
throws PKCS11Exception
session - The session for which to enumerate the objects.pkcs11_cls - The object class to be seeked.
Should be one of the CKO_* constants
PKCS11Exception - Upon errors of the underlying PKCS#11 module.
public PKCS11Mechanism[] getAllowedMechanisms()
throws PKCS11Exception
PKCS11Exception - Upon errors of the underlying PKCS#11 module.public int getId()
public String getLabel()
public PKCS11Provider getProvider()
public long getPvh()
getPvh in interface PKCS11SessionChildpublic long getSlotHandle()
getSlotHandle in interface PKCS11SessionChildpublic long getSessionHandle()
getSessionHandle in interface PKCS11SessionChildpublic long getHandle()
getHandle in interface PKCS11SessionChild
public void destroy()
throws DestroyFailedException
destroy in interface Destroyabledestroy in class DestroyableChildDestroyFailedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||