PKCS11 - Change Token
Hy!
I'm quite new to PKCS#11 and try to work with Keys on Aladdin eTokens. In the Java PKCS#11 Reference Guide (http://java.sun.com/j2se/1.5.0/docs/guide/security/p11guide.html) i found the following example and explanation:
KeyStore ks = builder.getKeyStore();
Key key = ks.get(alias, null);The builder will prompt for a password as needed using the previously configured callback handler. The builder will prompt for a password only for the initial access. If the user of the application continues using the same Smartcard, the user will not be prompted again. If the user removes and inserts a different SmartCard, the builder will prompt for a password for the new card.
According to this explanation, I assumed that I could change the token while my programm is running. Here is the code for my test programm:
String configName = "Pkcs11eToken.properties";
Provider p = new sun.security.pkcs11.SunPKCS11(configName);
Security.addProvider(p);
KeyStore.Builder builder = KeyStore.Builder.newInstance("PKCS11", p, new KeyStore.CallbackHandlerProtection(new Pkcs11CallbackHandler()));
KeyStore ks1 = builder.getKeyStore();
Key key = ks1.getKey("alias", "password".toCharArray());
System.out.println("Start sleeping");
Thread.sleep(10000);
System.out.println("Stopped sleeping");
KeyStore ks2 = builder.getKeyStore();
Key key2 = ks2.getKey("alias", "password".toCharArray());The entries in Pkcs11eToken.properties are:
name = Aladdin
library = C:\WINDOWS\system32\eTpkcs11.dllMy test programm works very well with one eToken. But when I remove the token while my programm sleeps and insert another one, I get the following exception:
java.security.ProviderException: Token has been removedIsn't it the intention of using the builder and the callback function that I'm automatically prompted for the password for the new token?
I would be very thankful if anybody could help me with this problem, because in my application I need to cope with removed and inserted tokens.
thanks in advance
Barbara
I have the exact same problem!
Did you ever find a sollution for this?
Thank you very much
Similar Messages
-
How to find the max data transfer rate(disk speed) supported by mobo?
I plan on replacing my current HDD with a new and bigger HDD.
For this I need to know the max data transfer rate(disk speed) that my mobo will support. However, dmidecode is not telling me that. Am I missing something?
Here's dmidecode:
# dmidecode 2.11
SMBIOS 2.5 present.
80 structures occupying 2858 bytes.
Table at 0x000F0450.
Handle 0xDA00, DMI type 218, 101 bytes
OEM-specific Type
Header and Data:
DA 65 00 DA B2 00 17 4B 0E 38 00 00 80 00 80 01
00 02 80 02 80 01 00 00 A0 00 A0 01 00 58 00 58
00 01 00 59 00 59 00 01 00 75 01 75 01 01 00 76
01 76 01 01 00 05 80 05 80 01 00 D1 01 19 00 01
00 15 02 19 00 02 00 1B 00 19 00 03 00 19 00 19
00 00 00 4A 02 4A 02 01 00 0C 80 0C 80 01 00 FF
FF 00 00 00 00
Handle 0xDA01, DMI type 218, 35 bytes
OEM-specific Type
Header and Data:
DA 23 01 DA B2 00 17 4B 0E 38 00 10 F5 10 F5 00
00 11 F5 11 F5 00 00 12 F5 12 F5 00 00 FF FF 00
00 00 00
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: Dell Inc.
Version: A17
Release Date: 04/06/2010
Address: 0xF0000
Runtime Size: 64 kB
ROM Size: 4096 kB
Characteristics:
PCI is supported
PNP is supported
APM is supported
BIOS is upgradeable
BIOS shadowing is allowed
ESCD support is available
Boot from CD is supported
Selectable boot is supported
EDD is supported
Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
3.5"/720 kB floppy services are supported (int 13h)
Print screen service is supported (int 5h)
8042 keyboard services are supported (int 9h)
Serial services are supported (int 14h)
Printer services are supported (int 17h)
ACPI is supported
USB legacy is supported
BIOS boot specification is supported
Function key-initiated network boot is supported
Targeted content distribution is supported
BIOS Revision: 17.0
Handle 0x0100, DMI type 1, 27 bytes
System Information
Manufacturer: Dell Inc.
Product Name: OptiPlex 755
Version: Not Specified
UUID: 44454C4C-5900-1050-8033-C4C04F434731
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified
Handle 0x0200, DMI type 2, 8 bytes
Base Board Information
Manufacturer: Dell Inc.
Product Name: 0PU052
Version:
Handle 0x0300, DMI type 3, 13 bytes
Chassis Information
Manufacturer: Dell Inc.
Type: Space-saving
Lock: Not Present
Version: Not Specified
Asset Tag:
Boot-up State: Safe
Power Supply State: Safe
Thermal State: Safe
Security Status: None
Handle 0x0400, DMI type 4, 40 bytes
Processor Information
Socket Designation: CPU
Type: Central Processor
Family: Xeon
Manufacturer: Intel
ID: 76 06 01 00 FF FB EB BF
Signature: Type 0, Family 6, Model 23, Stepping 6
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
DS (Debug store)
ACPI (ACPI supported)
MMX (MMX technology supported)
FXSR (FXSAVE and FXSTOR instructions supported)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
SS (Self-snoop)
HTT (Multi-threading)
TM (Thermal monitor supported)
PBE (Pending break enabled)
Version: Not Specified
Voltage: 0.0 V
External Clock: 1333 MHz
Max Speed: 5200 MHz
Current Speed: 2666 MHz
Status: Populated, Enabled
Upgrade: Socket LGA775
L1 Cache Handle: 0x0700
L2 Cache Handle: 0x0701
L3 Cache Handle: Not Provided
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Core Count: 2
Core Enabled: 2
Thread Count: 2
Characteristics:
64-bit capable
Handle 0x0700, DMI type 7, 19 bytes
Cache Information
Socket Designation: Not Specified
Configuration: Enabled, Not Socketed, Level 1
Operational Mode: Write Back
Location: Internal
Installed Size: 32 kB
Maximum Size: 32 kB
Supported SRAM Types:
Other
Installed SRAM Type: Other
Speed: Unknown
Error Correction Type: None
System Type: Data
Associativity: 8-way Set-associative
Handle 0x0701, DMI type 7, 19 bytes
Cache Information
Socket Designation: Not Specified
Configuration: Enabled, Not Socketed, Level 2
Operational Mode: Varies With Memory Address
Location: Internal
Installed Size: 6144 kB
Maximum Size: 6144 kB
Supported SRAM Types:
Other
Installed SRAM Type: Other
Speed: Unknown
Error Correction Type: Single-bit ECC
System Type: Unified
Associativity: <OUT OF SPEC>
Handle 0x0800, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: PARALLEL
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: DB-25 female
Port Type: Parallel Port PS/2
Handle 0x0801, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: SERIAL1
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: DB-9 male
Port Type: Serial Port 16550A Compatible
Handle 0x0802, DMI type 126, 9 bytes
Inactive
Handle 0x0803, DMI type 126, 9 bytes
Inactive
Handle 0x0804, DMI type 126, 9 bytes
Inactive
Handle 0x0805, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: USB1
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: Access Bus (USB)
Port Type: USB
Handle 0x0806, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: USB2
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: Access Bus (USB)
Port Type: USB
Handle 0x0807, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: USB3
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: Access Bus (USB)
Port Type: USB
Handle 0x0808, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: USB4
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: Access Bus (USB)
Port Type: USB
Handle 0x0809, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: USB5
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: Access Bus (USB)
Port Type: USB
Handle 0x080A, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: USB6
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: Access Bus (USB)
Port Type: USB
Handle 0x080B, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: USB7
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: Access Bus (USB)
Port Type: USB
Handle 0x080C, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: USB8
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: Access Bus (USB)
Port Type: USB
Handle 0x080D, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: ENET
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: RJ-45
Port Type: Network Port
Handle 0x080E, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: MIC
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: Mini Jack (headphones)
Port Type: Audio Port
Handle 0x080F, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: LINE-OUT
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: Mini Jack (headphones)
Port Type: Audio Port
Handle 0x0810, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: LINE-IN
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: Mini Jack (headphones)
Port Type: Audio Port
Handle 0x0811, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: HP-OUT
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: Mini Jack (headphones)
Port Type: Audio Port
Handle 0x0812, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: MONITOR
Internal Connector Type: None
External Reference Designator: Not Specified
External Connector Type: DB-15 female
Port Type: Video Port
Handle 0x090A, DMI type 9, 13 bytes
System Slot Information
Designation: SLOT1
Type: x1 Proprietary
Current Usage: In Use
Length: Long
Characteristics:
PME signal is supported
Handle 0x0901, DMI type 126, 13 bytes
Inactive
Handle 0x0902, DMI type 9, 13 bytes
System Slot Information
Designation: SLOT2
Type: 32-bit PCI
Current Usage: Available
Length: Long
ID: 2
Characteristics:
5.0 V is provided
3.3 V is provided
PME signal is supported
Handle 0x0903, DMI type 126, 13 bytes
Inactive
Handle 0x0904, DMI type 126, 13 bytes
Inactive
Handle 0x0905, DMI type 126, 13 bytes
Inactive
Handle 0x0906, DMI type 126, 13 bytes
Inactive
Handle 0x0907, DMI type 126, 13 bytes
Inactive
Handle 0x0908, DMI type 126, 13 bytes
Inactive
Handle 0x0A00, DMI type 10, 6 bytes
On Board Device Information
Type: Video
Status: Disabled
Description: Intel Graphics Media Accelerator 950
Handle 0x0A02, DMI type 10, 6 bytes
On Board Device Information
Type: Ethernet
Status: Enabled
Description: Intel Gigabit Ethernet Controller
Handle 0x0A03, DMI type 10, 6 bytes
On Board Device Information
Type: Sound
Status: Enabled
Description: Intel(R) High Definition Audio Controller
Handle 0x0B00, DMI type 11, 5 bytes
OEM Strings
String 1: www.dell.com
Handle 0x0D00, DMI type 13, 22 bytes
BIOS Language Information
Language Description Format: Long
Installable Languages: 1
en|US|iso8859-1
Currently Installed Language: en|US|iso8859-1
Handle 0x0F00, DMI type 15, 29 bytes
System Event Log
Area Length: 2049 bytes
Header Start Offset: 0x0000
Header Length: 16 bytes
Data Start Offset: 0x0010
Access Method: Memory-mapped physical 32-bit address
Access Address: 0xFFF01000
Status: Valid, Not Full
Change Token: 0x00000018
Header Format: Type 1
Supported Log Type Descriptors: 3
Descriptor 1: POST error
Data Format 1: POST results bitmap
Descriptor 2: System limit exceeded
Data Format 2: System management
Descriptor 3: Log area reset/cleared
Data Format 3: None
Handle 0x1000, DMI type 16, 15 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 8 GB
Error Information Handle: Not Provided
Number Of Devices: 4
Handle 0x1100, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: None
Locator: DIMM_1
Bank Locator: Not Specified
Type: DDR2
Type Detail: Synchronous
Speed: 667 MHz
Manufacturer: AD00000000000000
Handle 0x1101, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: None
Locator: DIMM_3
Bank Locator: Not Specified
Type: DDR2
Type Detail: Synchronous
Speed: 667 MHz
Handle 0x1102, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: None
Locator: DIMM_2
Bank Locator: Not Specified
Type: DDR2
Type Detail: Synchronous
Speed: 667 MHz
Handle 0x1103, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: None
Locator: DIMM_4
Bank Locator: Not Specified
Type: DDR2
Type Detail: Synchronous
Speed: 667 MHz
Handle 0x1300, DMI type 19, 15 bytes
Memory Array Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x000FDFFFFFF
Range Size: 4064 MB
Physical Array Handle: 0x1000
Partition Width: 1
Handle 0x1400, DMI type 20, 19 bytes
Memory Device Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x0007FFFFFFF
Range Size: 2 GB
Physical Device Handle: 0x1100
Memory Array Mapped Address Handle: 0x1300
Partition Row Position: 1
Interleave Position: 1
Interleaved Data Depth: 1
Handle 0x1401, DMI type 20, 19 bytes
Memory Device Mapped Address
Starting Address: 0x00080000000
Ending Address: 0x000FDFFFFFF
Range Size: 2016 MB
Physical Device Handle: 0x1101
Memory Array Mapped Address Handle: 0x1300
Partition Row Position: 1
Interleave Position: 1
Interleaved Data Depth: 1
Handle 0x1402, DMI type 20, 19 bytes
Memory Device Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x0007FFFFFFF
Range Size: 2 GB
Physical Device Handle: 0x1102
Memory Array Mapped Address Handle: 0x1300
Partition Row Position: 1
Interleave Position: 2
Interleaved Data Depth: 1
Handle 0x1403, DMI type 20, 19 bytes
Memory Device Mapped Address
Starting Address: 0x00080000000
Ending Address: 0x000FDFFFFFF
Range Size: 2016 MB
Physical Device Handle: 0x1103
Memory Array Mapped Address Handle: 0x1300
Partition Row Position: 1
Interleave Position: 2
Interleaved Data Depth: 1
Handle 0x1410, DMI type 126, 19 bytes
Inactive
Handle 0x1800, DMI type 24, 5 bytes
Hardware Security
Power-On Password Status: Enabled
Keyboard Password Status: Not Implemented
Administrator Password Status: Enabled
Front Panel Reset Status: Not Implemented
Handle 0x1900, DMI type 25, 9 bytes
System Power Controls
Next Scheduled Power-on: *-* 00:00:00
Handle 0x1B10, DMI type 27, 12 bytes
Cooling Device
Type: Fan
Status: OK
OEM-specific Information: 0x0000DD00
Handle 0x1B11, DMI type 27, 12 bytes
Cooling Device
Type: Fan
Status: OK
OEM-specific Information: 0x0000DD01
Handle 0x1B12, DMI type 126, 12 bytes
Inactive
Handle 0x1B13, DMI type 126, 12 bytes
Inactive
Handle 0x1B14, DMI type 126, 12 bytes
Inactive
Handle 0x2000, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected
Handle 0x8100, DMI type 129, 8 bytes
OEM-specific Type
Header and Data:
81 08 00 81 01 01 02 01
Strings:
Intel_ASF
Intel_ASF_001
Handle 0x8200, DMI type 130, 20 bytes
OEM-specific Type
Header and Data:
82 14 00 82 24 41 4D 54 01 01 00 00 01 A5 0B 02
00 00 00 00
Handle 0x8300, DMI type 131, 64 bytes
OEM-specific Type
Header and Data:
83 40 00 83 14 00 00 00 00 00 C0 29 05 00 00 00
F8 00 4E 24 00 00 00 00 0D 00 00 00 02 00 03 00
19 04 14 00 01 00 01 02 C8 00 BD 10 00 00 00 00
00 00 00 00 FF 00 00 00 00 00 00 00 00 00 00 00
Handle 0x8800, DMI type 136, 6 bytes
OEM-specific Type
Header and Data:
88 06 00 88 5A 5A
Handle 0xD000, DMI type 208, 10 bytes
OEM-specific Type
Header and Data:
D0 0A 00 D0 01 03 FE 00 11 02
Handle 0xD100, DMI type 209, 12 bytes
OEM-specific Type
Header and Data:
D1 0C 00 D1 78 03 07 03 04 0F 80 05
Handle 0xD200, DMI type 210, 12 bytes
OEM-specific Type
Header and Data:
D2 0C 00 D2 F8 03 04 03 06 80 04 05
Handle 0xD201, DMI type 126, 12 bytes
Inactive
Handle 0xD400, DMI type 212, 242 bytes
OEM-specific Type
Header and Data:
D4 F2 00 D4 70 00 71 00 00 10 2D 2E 42 00 11 FE
01 43 00 11 FE 00 0F 00 25 FC 00 10 00 25 FC 01
11 00 25 FC 02 12 00 25 FC 03 00 00 25 F3 00 00
00 25 F3 04 00 00 25 F3 08 00 00 25 F3 0C 07 00
23 8F 00 08 00 23 F3 00 09 00 23 F3 04 0A 00 23
F3 08 0B 00 23 8F 10 0C 00 23 8F 20 0E 00 23 8F
30 0D 00 23 8C 40 A6 00 23 8C 41 A7 00 23 8C 42
05 01 22 FD 02 06 01 22 FD 00 8C 00 22 FE 00 8D
00 22 FE 01 9B 00 25 3F 40 9C 00 25 3F 00 09 01
25 3F 80 A1 00 26 F3 00 A2 00 26 F3 08 A3 00 26
F3 04 9F 00 26 FD 02 A0 00 26 FD 00 9D 00 11 FB
04 9E 00 11 FB 00 54 01 23 7F 00 55 01 23 7F 80
5C 00 78 BF 40 5D 00 78 BF 00 04 80 78 F5 0A 01
A0 78 F5 00 93 00 7B 7F 80 94 00 7B 7F 00 8A 00
37 DF 20 8B 00 37 DF 00 03 C0 67 00 05 FF FF 00
00 00
Handle 0xD401, DMI type 212, 172 bytes
OEM-specific Type
Header and Data:
D4 AC 01 D4 70 00 71 00 03 40 59 6D 2D 00 59 FC
02 2E 00 59 FC 00 6E 00 59 FC 01 E0 01 59 FC 03
28 00 59 3F 00 29 00 59 3F 40 2A 00 59 3F 80 2B
00 5A 00 00 2C 00 5B 00 00 55 00 59 F3 00 6D 00
59 F3 04 8E 00 59 F3 08 8F 00 59 F3 00 00 00 55
FB 04 00 00 55 FB 00 23 00 55 7F 00 22 00 55 7F
80 F5 00 58 BF 40 F6 00 58 BF 00 EB 00 55 FE 00
EA 00 55 FE 01 40 01 54 EF 00 41 01 54 EF 10 ED
00 54 F7 00 F0 00 54 F7 08 4A 01 53 DF 00 4B 01
53 DF 20 4C 01 53 7F 00 4D 01 53 7F 80 68 01 56
BF 00 69 01 56 BF 40 FF FF 00 00 00
Handle 0xD402, DMI type 212, 152 bytes
OEM-specific Type
Header and Data:
D4 98 02 D4 70 00 71 00 00 10 2D 2E 2D 01 21 FE
01 2E 01 21 FE 00 97 00 22 FB 00 98 00 22 FB 04
90 00 11 CF 00 91 00 11 CF 20 92 00 11 CF 10 E2
00 27 7F 00 E3 00 27 7F 80 E4 00 27 BF 00 E5 00
27 BF 40 D1 00 22 7F 80 D2 00 22 7F 00 45 01 22
BF 40 44 01 22 BF 00 36 01 21 F1 06 37 01 21 F1
02 38 01 21 F1 00 39 01 21 F1 04 2B 01 11 7F 80
2C 01 11 7F 00 4E 01 65 CF 00 4F 01 65 CF 10 D4
01 65 F3 00 D5 01 65 F3 04 D2 01 65 FC 00 D3 01
65 FC 01 FF FF 00 00 00
Handle 0xD403, DMI type 212, 157 bytes
OEM-specific Type
Header and Data:
D4 9D 03 D4 70 00 71 00 03 40 59 6D 17 01 52 FE
00 18 01 52 FE 01 19 01 52 FB 00 1A 01 52 FB 04
1B 01 52 FD 00 1C 01 52 FD 02 1D 01 52 F7 00 1E
01 52 F7 08 1F 01 52 EF 00 20 01 52 EF 10 21 01
52 BF 00 22 01 52 BF 40 87 00 59 DF 20 88 00 59
DF 00 E8 01 66 FD 00 E9 01 66 FD 02 02 02 53 BF
00 03 02 53 BF 40 04 02 53 EF 00 05 02 53 EF 10
06 02 66 DF 00 07 02 66 DF 20 08 02 66 EF 00 09
02 66 EF 10 17 02 66 F7 00 18 02 66 F7 08 44 02
52 BF 40 45 02 52 BF 00 FF FF 00 00 00
Handle 0xD800, DMI type 126, 9 bytes
Inactive
Handle 0xDD00, DMI type 221, 19 bytes
OEM-specific Type
Header and Data:
DD 13 00 DD 00 01 00 00 00 10 F5 00 00 00 00 00
00 00 00
Handle 0xDD01, DMI type 221, 19 bytes
OEM-specific Type
Header and Data:
DD 13 01 DD 00 01 00 00 00 11 F5 00 00 00 00 00
00 00 00
Handle 0xDD02, DMI type 221, 19 bytes
OEM-specific Type
Header and Data:
DD 13 02 DD 00 01 00 00 00 12 F5 00 00 00 00 00
00 00 00
Handle 0xDE00, DMI type 222, 16 bytes
OEM-specific Type
Header and Data:
DE 10 00 DE C1 0B 00 00 10 05 19 21 01 00 00 01
Handle 0x7F00, DMI type 127, 4 bytes
End Of Table
Hdparm also does not tell me the max data transfer rate (disk speed) of my current drive although this link : www.wdc.com/en/library/sata/2879-001146.pdf says that it is 3.0Gb/s
and here's hdparm -I /dev/sda
/dev/sda:
ATA device, with non-removable media
Model Number: WDC WD800JD-75JNC0
Firmware Revision: 06.01C06
Standards:
Supported: 6 5 4
Likely used: 8
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
CHS current addressable sectors: 16514064
LBA user addressable sectors: 156250000
Logical/Physical Sector size: 512 bytes
device size with M = 1024*1024: 76293 MBytes
device size with M = 1000*1000: 80000 MBytes (80 GB)
cache/buffer size = 8192 KBytes
Capabilities:
LBA, IORDY(can be disabled)
Standby timer values: spec'd by Standard, with device specific minimum
R/W multiple sector transfer: Max = 16 Current = 8
Recommended acoustic management value: 128, current value: 254
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* DOWNLOAD_MICROCODE
SET_MAX security extension
Automatic Acoustic Management feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* SMART error logging
* SMART self-test
* Gen1 signaling speed (1.5Gb/s)
* Host-initiated interface power management
* SMART Command Transport (SCT) feature set
* SCT Long Sector Access (AC1)
* SCT LBA Segment Access (AC2)
* SCT Error Recovery Control (AC3)
* SCT Features Control (AC4)
* SCT Data Tables (AC5)
Security:
Master password revision code = 65534
supported
not enabled
not locked
frozen
not expired: security count
not supported: enhanced erase
Checksum: correct
Last edited by Inxsible (2011-03-27 04:40:49)I just checked my BIOS and my current setting is set at IDE although it also mentions that the default should be AHCI. Currently I have a dual boot of Windows 7 (need it for Tax software) and Arch
So I guess, when I get the new HDD, I will first set it to AHCI and then install the OSes on it. See if NCQ helps any, and if not I will turn it back and re-install (if I have to). I am planning to have Windows only in virtualbox in the new drive.
Anyhoo, while I was in the BIOS I found two things which I had questions about :
1) Under Onboard Devices --> Integrated NIC , my setting is currently set at "On w/PXE" and it says the default should be just "On". Would it be ok to change it back to On since its a single machine and its not booting an OS on any server. I just don't want to have to re-install anything now since I will be doing that in the new HDD.
2) How would I know whether my BIOS would support a 64 bit OS in Virtualbox? I checked some setting under Virtualization, but they weren't very clear.
I will edit this post and let you know exactly what settings were present under the Virtualization sub-section. -
Insert Button on SAP GUI Logon Screen
Hello,
is it possible to insert a button on the SAP GUI logon screen like the "new password" button?
We want to insert a button, with which the user can generate a new initial password, if he has forgotten his password.
Thanks for answers
regards
Christian>
Anand Munuswamy wrote:
> Hi,
>
> I very strictly advice to avoid of providing "Reset password" button to user, this will make any user to reset the password of other users. This is one of the security violation.
I fully agree.
> If you want to provide option for reseting the passwords to user, you can make a custom program which can be executed by user and can reset the password for their own user, but not for others.
>
> Regards
> Anandm
Well, I'd propose to leave the SAPGUI screen untouched but only place a comment on the logon screen (see [note 205487|https://service.sap.com/sap/support/notes/205487]) which informs the user on a URL to a web application (BSP) which provides the desired "forgotten password" self-service functionality.
In the internet you find many examples of such "forgotten password" self-services - good ones and not so good ones. What all of them have in common is the requirement that the user has provided a valid email address or mobile number (during the account registration) which can be used for the required off-band communication. However they differentiate in the way they try to mitigate misuse: some prompt for a so-called passphrase (in most cases: the user has entered a free-text answer to a question chosen from a fixed set of predefined questions, during accoutn registration) before sending a newly created password to the email address retrieved from the user account; others generate a (random) "password change token" which they send to the email address and prompt the user to enter this "password change token" on the webpage (the account remains untouched until the correct "password change token" was entered, in most cases this is also time-restricted). I prefer the latter one.
Cheers, Wolfgang -
How to enable execute-disable bit and other hidden settings on Lenovo 3000 N200 model 0769!
2008-11-16: I have posted some more settings, scroll down to message 19 in this thread to read them.
Hi,
Here's some good news for anyone with a Lenovo 3000 N200 model 0769, who is disappointed and frustrated with the lack of options in the BIOS setup menu. (I had a moan about that in this thread.)
This is a long post but I hope you'll find it worthwhile. Here are the features/settings which I will explain how to enable:
The BIOS disables the execute-disable bit function of the CPU, with no way to turn it on. You can enable it.
You can set VGA and VESA graphics modes to not be stretched to fill the whole screen (sharper graphics with no distorted aspect ratio).
Speed up the POST display by skipping the memory test
Disable various features (if you don't use them, that might save some power): the HD audio controller, WLAN card, on-board LAN, shadowing of the video BIOS
Enable beep before booting the OS
Enable key click sound (only in DOS, not Windows or Linux)
I'm still working on this, and hope to figure out more hidden settings soon, e.g. to disable the DVD drive and trackpad, and to change the video output from NTSC to PAL.
The information below applies to the Lenovo 3000 N200 model 0769 with BIOS version 3.03. My N200 has Nvidia graphics. For some background on the general principles/research required to figure this out, please see this thread at Wimsbios.com.
To change the settings, you need to create a bootable DOS floppy disk or USB drive. Download SYMCMOS.EXE (Google for it) and put it on the bootable disk. Boot the disk and run SYMCMOS to back up your current CMOS settings: SYMCMOS -Lsettings.txt
Next load the settings.txt into a text editor. It will begin like this:
( SYMBOLIC CMOS EDITOR - Version 643710-035 )
CRC = 3EDD
(0000) [0001]
(0003) [0001]
Your CRC value may differ. Each line after the CRC contains a token number, followed by the value of that token. You can start with the settings.txt you created and edit any tokens you want to change, or delete all token lines and just include the tokens you want to change. Then use SYMCMOS.EXE to apply the new file: SYMCMOS -V2 -Uupdate.txt
After running that command you can reset, and hopefully notice the new settings in action. (For certain settings, such as re-enabling the execute-disable bit, you need to turn the computer off then on again.)
Here are some specific tokens you can change:
Token Default New Description
(0000) [0001] [0000] Disable the HD audio controller
(0042) [0001] [0000] Disable LCD panel graphics scaling/stretching
(004B) [0000] [0001] Beep before booting the OS
(0267) [0001] [0000] Enable support for the CPU execute-disable bit
(028E) [0000] [0001] Enable key click (only works in DOS and BIOS setup)
(02A3) [0001] Set to 0 for slower memory test, or 2 (or 3?) to skip
test for faster booting, especially with 4GB RAM
(046E) [0001] [0000] Disable video BIOS shadowing. (Best to leave enabled.)
(0471) [0000] [0001] Enable 1MB memory hole at 15MB. (Best leave disabled.)
(0486) [0001] [0000] Disable PCI Express ports 1-6. This takes precedence
over the individual port bits below, and disables the
LAN, WLAN and (probably) ExpressCard port.
(0489) [0001] [0000] Disable PCI Express port 2 (WLAN card)
(048C) [0001] [0000] Disable PCI Express port 3 (maybe ExpressCard?)
(048F) [0001] [0000] Disable PCI Express port 4 (LAN)
For example, if you want to disable LCD panel scaling and enable the execute-disable bit, you would create a text file like this:
CRC = 3EDD
(0042) [0000]
(0267) [0001]
Some final points:
Loading the default settings in the BIOS setup menu will overwrite any changes you make using SYMCMOS.EXE. So keep that bootable disk around in case you need to re-apply your settings in future.
The token numbers above are specific to version 3.03 of the Lenovo 3000 N200 model 0769 BIOS. They might be different for earlier BIOS versions, and will be different for other models of computer.
Once you have created a bootable floppy disk with a text file containing your updated settings, you could create a bootable CD with the floppy's data on. Just boot that CD to restore your settings in future.
Before experimenting with randomly changing token values to discover other hidden settings, make sure you know how to reset your computer's CMOS memory! Changing some settings results in your computer becoming unable to boot, so you can't use the BIOS setup screen to reset. I wrote about how to reset the N200 model 0769 CMOS in this thread.
If you discover any other settings, please let me know.
Any changes made are at your own risk; if you "brick" your laptop don't blame me!
Message Edited by Donuts on 10-15-2008 09:45 AM
Message Edited by Donuts on 11-16-2008 11:35 PMHi Donuts !
My computer is a 3000 N200 0769BAG. It has a Dual Core Pentium and the information I get about the BIOS using lshw are :
========================================================================================
description: BIOS
vendor: LENOVO
physical id: 0
version: 68ET35WW (04/16/2008)
size: 106KiB
capacity: 960KiB
capabilities: pci pnp apm upgrade shadowing escd cdboot bootselect edd int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb ls120boot biosbootspecification
====================================================================================
I've nothing telling me it is a 3.03 BIOS version but only got the BIOS file name (68ET35WW);
Is it the same BIOS you used and if not how could I find the list of (token, default value,new seting) for that particular BIOS ?
Thanks a lot in advance for your help !
Regards -
LCD Brightness Toshiba Equium A100-147
I can't seem to set the brightness on my toshiba laptop.
$ xbacklight -set 00
$
Seems to pause for a while then returns a prompt as if it had completed but nothing changes.
$ toshset -lcd 50
required kernel toshiba support not enabled.
Self explanatory.
$ sudo setpci -v -s 00:02.1 F4.B=00
0000:00:02.1 @f4 0
This doesn't do anything either.
My current battery life is appalling. After a full charge and 35mins uptime I'm now on 43%. I have an xterm, google-chrome, X11 and fluxbox open. I've enabled most of the things in the laptop-mode daemon and another odd point if that my fan seems to be turning on at 46deg and off at 45deg. So all I can hear is fannnnnnn, offffffff, fannnnnnnn, offffffffff.
Weird.
Also, I'm using the xf86-video-intel-newest from the AUR.
Any help on any situation would be great. Thanks.
Last edited by BaconPie (2010-12-21 01:52:01)dziambo wrote:show "dmidecode"
$ sudo dmidecode
# dmidecode 2.10
SMBIOS version fixup (2.31 -> 2.3).
SMBIOS 2.3 present.
36 structures occupying 1161 bytes.
Table at 0x000DC010.
Handle 0x0000, DMI type 0, 20 bytes
BIOS Information
Vendor: Phoenix Technologies LTD
Version: 2.00
Release Date: 08/30/2006
Address: 0xE4180
Runtime Size: 114304 bytes
ROM Size: 1024 kB
Characteristics:
ISA is supported
PCI is supported
PC Card (PCMCIA) is supported
PNP is supported
APM is supported
BIOS is upgradeable
BIOS shadowing is allowed
ESCD support is available
Boot from CD is supported
ACPI is supported
USB legacy is supported
AGP is supported
BIOS boot specification is supported
Handle 0x0001, DMI type 1, 25 bytes
System Information
Manufacturer: TOSHIBA
Product Name: Satellite A100
Version: PSB10U-SA10ES1
Serial Number: 12345678901234567
UUID: Not Settable
Wake-up Type: Power Switch
Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
Manufacturer: Intel Corporation
Product Name: MPAD-MSAE Customer Reference Boards
Version: Not Applicable
Serial Number: Not Applicable
Handle 0x0003, DMI type 3, 21 bytes
Chassis Information
Manufacturer: No Enclosure
Type: Other
Lock: Not Present
Version: N/A
Serial Number: None
Asset Tag: No Asset Tag
Boot-up State: Safe
Power Supply State: Safe
Thermal State: Safe
Security Status: None
OEM Information: 0x00000000
Height: 52 U
Number Of Power Cords: 18
Contained Elements: 0
Handle 0x0004, DMI type 4, 35 bytes
Processor Information
Socket Designation: U1
Type: Central Processor
Family: Other
Manufacturer: Intel
ID: E8 06 00 00 FF FB E9 BF
Version: Genuine Intel(R) CPU T2
Voltage: 3.3 V
External Clock: Unknown
Max Speed: 500 MHz
Current Speed: 1600 MHz
Status: Populated, Enabled
Upgrade: Slot 1
L1 Cache Handle: 0x0005
L2 Cache Handle: 0x0006
L3 Cache Handle: Not Provided
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Handle 0x0005, DMI type 7, 19 bytes
Cache Information
Socket Designation: L1 Cache
Configuration: Enabled, Socketed, Level 1
Operational Mode: Write Back
Location: Internal
Installed Size: 16 kB
Maximum Size: 16 kB
Supported SRAM Types:
Burst
Pipeline Burst
Asynchronous
Installed SRAM Type: Asynchronous
Speed: Unknown
Error Correction Type: Unknown
System Type: Unknown
Associativity: Unknown
Handle 0x0006, DMI type 7, 19 bytes
Cache Information
Socket Designation: L2 Cache
Configuration: Enabled, Socketed, Level 2
Operational Mode: Write Back
Location: External
Installed Size: 2048 kB
Maximum Size: 512 kB
Supported SRAM Types:
Burst
Pipeline Burst
Asynchronous
Installed SRAM Type: Burst
Speed: Unknown
Error Correction Type: Unknown
System Type: Unknown
Associativity: Unknown
Handle 0x0007, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: J19
Internal Connector Type: 9 Pin Dual Inline (pin 10 cut)
External Reference Designator: COM 1
External Connector Type: DB-9 male
Port Type: Serial Port 16550A Compatible
Handle 0x0008, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: J23
Internal Connector Type: 25 Pin Dual Inline (pin 26 cut)
External Reference Designator: Parallel
External Connector Type: DB-25 female
Port Type: Parallel Port ECP/EPP
Handle 0x0009, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: J11
Internal Connector Type: None
External Reference Designator: Keyboard
External Connector Type: Circular DIN-8 male
Port Type: Keyboard Port
Handle 0x000A, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: J12
Internal Connector Type: None
External Reference Designator: PS/2 Mouse
External Connector Type: Circular DIN-8 male
Port Type: Keyboard Port
Handle 0x000B, DMI type 9, 13 bytes
System Slot Information
Designation: PCI Slot J11
Type: 32-bit PCI
Current Usage: Unknown
Length: Long
ID: 0
Characteristics:
5.0 V is provided
3.3 V is provided
Handle 0x000C, DMI type 9, 13 bytes
System Slot Information
Designation: PCI Slot J12
Type: 32-bit PCI
Current Usage: Unknown
Length: Long
ID: 0
Characteristics:
5.0 V is provided
3.3 V is provided
Handle 0x000D, DMI type 9, 13 bytes
System Slot Information
Designation: PCI Slot J13
Type: 32-bit PCI
Current Usage: Unknown
Length: Long
ID: 0
Characteristics:
5.0 V is provided
3.3 V is provided
Handle 0x000E, DMI type 10, 6 bytes
On Board Device Information
Type: Sound
Status: Disabled
Description: ADI
Handle 0x000F, DMI type 11, 5 bytes
OEM Strings
String 1: This is the Intel Calistoga
String 2: Chipset CRB Platform
Handle 0x0010, DMI type 12, 5 bytes
System Configuration Options
Option 1: Jumper settings can be described here.
Handle 0x0011, DMI type 15, 29 bytes
System Event Log
Area Length: 16 bytes
Header Start Offset: 0x0000
Header Length: 16 bytes
Data Start Offset: 0x0010
Access Method: General-purpose non-volatile data functions
Access Address: 0x0000
Status: Valid, Not Full
Change Token: 0x00000001
Header Format: Type 1
Supported Log Type Descriptors: 3
Descriptor 1: POST error
Data Format 1: POST results bitmap
Descriptor 2: Single-bit ECC memory error
Data Format 2: Multiple-event
Descriptor 3: Multi-bit ECC memory error
Data Format 3: Multiple-event
Handle 0x0012, DMI type 16, 15 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 2 GB
Error Information Handle: Not Provided
Number Of Devices: 2
Handle 0x0013, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x0012
Error Information Handle: No Error
Total Width: 32 bits
Data Width: 32 bits
Size: 1024 MB
Form Factor: SODIMM
Set: 1
Locator: M1
Bank Locator: Bank 0
Type: DDR
Type Detail: Synchronous
Speed: Unknown
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Handle 0x0014, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x0012
Error Information Handle: No Error
Total Width: 32 bits
Data Width: 32 bits
Size: 1024 MB
Form Factor: SODIMM
Set: 1
Locator: M2
Bank Locator: Bank 1
Type: DDR
Type Detail: Synchronous
Speed: Unknown
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Handle 0x0015, DMI type 19, 15 bytes
Memory Array Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x0007FFFFFFF
Range Size: 2 GB
Physical Array Handle: 0x0012
Partition Width: 0
Handle 0x0016, DMI type 20, 19 bytes
Memory Device Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x0003FFFFFFF
Range Size: 1 GB
Physical Device Handle: 0x0013
Memory Array Mapped Address Handle: 0x0015
Partition Row Position: Unknown
Interleave Position: Unknown
Interleaved Data Depth: Unknown
Handle 0x0017, DMI type 20, 19 bytes
Memory Device Mapped Address
Starting Address: 0x00040000000
Ending Address: 0x0007FFFFFFF
Range Size: 1 GB
Physical Device Handle: 0x0014
Memory Array Mapped Address Handle: 0x0015
Partition Row Position: Unknown
Interleave Position: Unknown
Interleaved Data Depth: Unknown
Handle 0x0018, DMI type 23, 13 bytes
System Reset
Status: Enabled
Watchdog Timer: Present
Boot Option: Do Not Reboot
Boot Option On Limit: Do Not Reboot
Reset Count: Unknown
Reset Limit: Unknown
Timer Interval: Unknown
Timeout: Unknown
Handle 0x0019, DMI type 24, 5 bytes
Hardware Security
Power-On Password Status: Disabled
Keyboard Password Status: Unknown
Administrator Password Status: Disabled
Front Panel Reset Status: Unknown
Handle 0x001A, DMI type 25, 9 bytes
System Power Controls
Next Scheduled Power-on: 12-31 23:59:59
Handle 0x001B, DMI type 26, 20 bytes
Voltage Probe
Description: Voltage Probe
Location: Processor
Status: OK
Maximum Value: Unknown
Minimum Value: Unknown
Resolution: Unknown
Tolerance: Unknown
Accuracy: Unknown
OEM-specific Information: 0x00000000
Handle 0x001C, DMI type 27, 12 bytes
Cooling Device
Temperature Probe Handle: 0x001D
Type: Fan
Status: OK
OEM-specific Information: 0x00000000
Handle 0x001D, DMI type 28, 20 bytes
Temperature Probe
Description: Temperature Probe
Location: Processor
Status: OK
Maximum Value: Unknown
Minimum Value: Unknown
Resolution: Unknown
Tolerance: Unknown
Accuracy: Unknown
OEM-specific Information: 0x00000000
Handle 0x001E, DMI type 29, 20 bytes
Electrical Current Probe
Description: Electrical Current Probe
Location: Processor
Status: OK
Maximum Value: Unknown
Minimum Value: Unknown
Resolution: Unknown
Tolerance: Unknown
Accuracy: Unknown
OEM-specific Information: 0x00000000
Handle 0x001F, DMI type 30, 6 bytes
Out-of-band Remote Access
Manufacturer Name: Intel
Inbound Connection: Enabled
Outbound Connection: Disabled
Handle 0x0020, DMI type 32, 20 bytes
System Boot Information
Status: <OUT OF SPEC>
Handle 0x0021, DMI type 136, 8 bytes
OEM-specific Type
Header and Data:
88 08 21 00 FF FF 00 00
Strings:
Handle 0x0022, DMI type 150, 14 bytes
OEM-specific Type
Header and Data:
96 0E 22 00 01 01 00 00 00 00 00 00 00 00
Strings:
ABSOLUTE(PHOENIX) CLM
Handle 0x0023, DMI type 127, 4 bytes
End Of Table
Last edited by BaconPie (2010-12-24 13:50:34) -
148 skype accounts linked to my e-mail address
I've recently received a "thank you for changing your Skype e-mail address" into my inbox. I never used Skype, so I didn't agree to any terms&conditions. There are no admin contact details on Skypes website, so I log into the "change password" to get the password changing token and then remove this account myself. I just didn't expect to see 148 accounts linked to my e-mail.
I've tried to send an e-mail to support via the form, but of course it doesnt't work either.
Any hints? I will remove the accounts one by one manually if there is no other way. If it contains any personal data I shall post them in this feed.Hi, Del148acc, and welcome to the Community,
We here in the Community are not authorized to access Skype accountholder data - please contact Skype customer service immediately. If you cannot get through, or do not wish to set up a Skype account in order to contact Skype Customer Service, send a detailed report to Skype via e-mail: [email protected]
Here is another link to the instruction on how to contact Skype Customer Service via their secure portal: Contact Customer Service
You will need to proceed through each step, one at a time. Sign on to the Skype website as requested. Choose the subject and topic which most closely matches the item you need assistance with. Then, continue past Step 2 of the instruction where several articles from the FAQ library will appear for you to review, and proceed to Step 3, Continue Support Request (the blue "button" appears at the lower right corner of the website page). You may also skip through Step 4 where you will be referred back here to the Community; no need to do this as the Community is where you started. When you complete the webform and click Submit, your information is relayed to Skype and you will receive a reply via e-mail.
I also strongly recommend changing the password to your e-mail address account as soon as possible, if you have not already done so. You may also wish to contact your e-mail account's customer helpdesk to report this incident to them, as well.
Regards,
Elaine
Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often! -
Dynamic String Substitution in Eclipse with JSP
Hi folks,
I'm wondering if it is possible to dynamically change token for ant that are present in my jsp with the dynamic string substitution in jsp inside tomcat. Right now, I'm loading the bootstrap with my runner and pointing to my application. In preference, I've put some token like @STATIC_URL@ that should replace by something else. But It seem that Tomcat goes directly to the source of the jsp and does'nt really care about the string substition of eclipse. Is there a way to do that?Hi there,
Since this is more of an Ant or an Eclipse question it is better to post the question in those forums / mailing lists as people on those lists will be able to help you better:
Here's the link to subscribe to the Ant User Mailing List, once you subscribe send a new e-mail to the list:
http://ant.apache.org/mail.html
Forum for Eclipse:
http://www-128.ibm.com/developerworks/forums/dw_forum.jsp?cat=28&forum=472 -
%1 is not a valid Win32 application
Hello,
I'm trying to compile and run a tutorial using PKCS11 for tokens. Here's the code I'm using
import iaik.pkcs.pkcs11.Module;
import iaik.pkcs.pkcs11.Slot;
import iaik.pkcs.pkcs11.Token;
import iaik.pkcs.pkcs11.TokenException;
import iaik.pkcs.pkcs11.TokenInfo;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
## Special License Rights - Contract #
## WARNING: Do not use, modify or deliver without written permission
## from Harris Corporation
* FILE: SmartCardTutorial.java
* Copyright (C) 2011 Harris Corporation. All rights reserved.
* CLASSIFICATION: Unclassified
* @author <a href="mailto:[email protected]">kjones34</a>
public class SmartCardTutorial
private Module pkcs11Module;
public static String DLL = "C:\\Windows\\system32\\acpkcs211.dll";
public SmartCardTutorial(String librarayPath)
try
pkcs11Module = Module.getInstance(librarayPath);
pkcs11Module.initialize(null);
catch (IOException ex)
Logger.getLogger(SmartCardTutorial.class.getName()).log(Level.SEVERE,
null,
ex);
catch (TokenException ex)
Logger.getLogger(SmartCardTutorial.class.getName()).log(Level.SEVERE,
null,
ex);
public Slot[] getTokenSlots()
throws TokenException
return pkcs11Module.getSlotList(Module.SlotRequirement.TOKEN_PRESENT);
public void printTokenInfos()
throws TokenException
Slot[] slots = getTokenSlots();
if (slots.length == 0)
{ // No tokens connected
System.out.println("Sorry, Couldn't find any token");
else
// Let's get the first slot
Slot selectedSlot = slots[0];
// Let's get the connected token
Token token = selectedSlot.getToken();
// Get the token infos
TokenInfo tokenInfo = token.getTokenInfo();
System.out.println("Token : " + tokenInfo.getLabel());
System.out.println("Vendor : " + tokenInfo.getManufacturerID());
System.out.println("Serial Number : " + tokenInfo.getSerialNumber());
* @param args
public static void main(String[] args)
SmartCardTutorial sct = new SmartCardTutorial(DLL);
try
sct.printTokenInfos();
catch (TokenException e)
// TODO Auto-generated catch block
e.printStackTrace();
}and here's the error I get:
Jun 22, 2011 3:35:21 PM SmartCardTutorial <init>
SEVERE: null
java.io.IOException: %1 is not a valid Win32 application.
C:\Windows\system32\acpkcs211.dll
at iaik.pkcs.pkcs11.wrapper.PKCS11Implementation.connect(Native Method)
at iaik.pkcs.pkcs11.wrapper.PKCS11Implementation.<init>(PKCS11Implementation.java:166)
at iaik.pkcs.pkcs11.wrapper.PKCS11Connector.connectToPKCS11Module(PKCS11Connector.java:75)
at iaik.pkcs.pkcs11.Module.getInstance(Module.java:202)
at SmartCardTutorial.<init>(SmartCardTutorial.java:39)
at SmartCardTutorial.main(SmartCardTutorial.java:89)
Exception in thread "main" java.lang.NullPointerException
at SmartCardTutorial.getTokenSlots(SmartCardTutorial.java:59)
at SmartCardTutorial.printTokenInfos(SmartCardTutorial.java:65)
at SmartCardTutorial.main(SmartCardTutorial.java:92)I'm not familiar with this error and I'm not sure where to start looking to fix the problem.
Has anyone encountered this before?Hi,
You should check the DLL you have. As far as I can tell, this error is coming from the Win32 LoadLibrary call in the iaik native code that is loading the P11 library. I have tried the following code on my system and it works fine.
import iaik.pkcs.pkcs11.Module;
* @author sfarmer
public class SCardToken {
private final static String DLL_PATH = "./acpkcs211.dll";
private Module p11;
* @throws Exception
public SCardToken() throws Exception {
p11 = Module.getInstance(DLL_PATH);
p11.initialize(null);
System.out.println(p11.getInfo());
public static void main(String[] args) throws Exception {
new SCardToken();
}Output:
Cryptoki Version: 2.11
ManufacturerID: ActivIdentity
Library Description: ActivIdentity Cryptoki Lib SDKThis is where you are getting your IOException from:
* Load the PKCS #11 DLL
hModule = LoadLibrary(libraryNameStr);
if (hModule == NULL) {
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
GetLastError(),
0, /* Default language */
(LPTSTR) &lpMsgBuf,
0,
NULL
exceptionMessage = (char *) malloc(sizeof(char) * (strlen((LPTSTR) lpMsgBuf) + strlen(libraryNameStr) + 1));
strcpy(exceptionMessage, (LPTSTR) lpMsgBuf);
strcat(exceptionMessage, libraryNameStr);
throwIOException(env, (LPTSTR) exceptionMessage);
/* Free the buffer. */
free(exceptionMessage);
LocalFree(lpMsgBuf);
return;
}Cheers,
Shane -
Hi
I am trying to enable printing for "nearly anonymous" users using integrated mode (tcc on windows clients).
Users authenticate using a token that is saved in thair profile.xml but the userprofile allowes multiple login.
This works as log as the profile.xml is restored before each login.
The only thing that is not working is printing. :-/
I built a test-user that has this token AND a password to do some tests:
As long as there is only one session allowed for this user printig works using webtop and using tcc client.
(called with -application "..." to start the application directly)
When I set this user to allow multiple logins printing still works when I am logged in using webtop.
Starting the application using tcc I can not print.
Does anyone have further information about what is needed to print?
Could this be an authentication issue as the profile.xml is changed (token is deleted) when I log in as long as multiple logins
for this user are allowed.
Any hints appreciated.
Regards
Sebastian RiesMost likely, the credential manager has the domain admin credentials for the connection to the server.
Since you did not include the necessary information, I will make some assumptions and you can correct me.
You have a client machine running Windows 7. The print server target is Server 2008 or greater. You have a queue view open on the client for the print share which is where you see both names.
If my cred manager postulation is correct, the print job is created with the user account information. The queue view is a representation of the local print job when Rendering on the Client is enabled, and the job when it goes to the print server.
When you see the regular user name, the print job is on the local machine. After it is copied over to the server, it has the domain security token so you see that user name.
check
Control Panel\All Control Panel Items\Credential Manager
Alan Morris Windows Printing Team -
JTextPane editor large file & performance
Hi,
I'm using a JTextPane to edit XML files. A jflex parser split xml file in tokens and using a custom document (extends
DefaultStyledDocument) i color syntax:
doc.setCharacterAttributes(token.getCharBegin() + change,
token.getCharEnd() - token.getCharBegin(),
Token_Styles_Define.getStyle(token.getDescription()), true);My problem is to load and edit large xml file, for exemple a 400kb xml file takes 30 seconds and for 700kb 1Mb i get java heap space.
I google it and i found :
" Define a limit that JTextPane/JEditorPane can handle well (like 500KB or 1MB). You'll only need to load a chunk of the file into the control with this size.
Start by loading the 1st partition of the file.
Then you need to interact with the scroll container and see if it has reached the end/beginning of the current chunk of the file. If so, show a nice waiting cursor and load the previous/next chunk to memory and into the text control.
The loading chunk is calculated from your current cursor position in the file (offset).
loading chunk = offset - limit/2 to offset + limit/2
The text on the JTextPane/JEditorPane must not change when loading chunks or else the user feels like is in another position of the file.
This is not a trivial solution but if you don't find any other 3rd party control to do this I would go this way. " (bruno conde)
Is this a good solution and can anybody give me an exemple (link tutorial project) ? or are any other solution?
How can we improve jtextpane performance?
ThxYes, i allready done that (using SwingUtilities.invokeLater and updates are only performed on document objects that are not attached to text components at the time that the updates are made)
The slow speed of insertion in a JTextPane has at least two culprits. The first is simply an effect of the Model-View-Controller architecture: If the document into which strings are being inserted is serving as the model for a visible text pane, each insertion will trigger a re-rendering of the display, which may in turn trigger other user interface updates. For interactive editing, this is exactly the behavior that one would want, since the results of user input should be immediately visible when editing text pane content. For initializing a text pane with a large amount of content, or, in general, making large batch edits, the overhead of repeated UI updates is signficant.
The second source of sluggishness is an implementation detail of DefaultStyledDocument. Unlike most Swing classes, which should only be modified in the AWT thread, DefaultStyledDocument is designed to be thread-safe. This requires DefaultStyledDocument to implement locking, so that multiple threads do not try to update the document contents at the same time. This locking imposes a small amount of overhead on each insertion or other document modification, which can add up to a long delay for large and complex text insertions.
[Faster JTextPane Text Insertion|http://javatechniques.com/public/java/docs/gui/jtextpane-speed-part1.html]
but is still slow (reading file)...and the other problem is with memory usage.
I found this subject on many other forums but not with a satisfactory answer ......must be a solution
Thx for your answers guys! -
Warning! Skype account hacked and money stolen
I feel it is important that Skype users be warned of their vulnerability to Internet theft and take the appropriate action.
All persons with Skype pre-approved payment agreements through Paypal should seriously consider cancelling these agreements immediately. The urgency to take this action is for the following reasons:
1. Paypal considers the theft of a Skype prepaid account as "not an instance of unauthorized account activity" and will not refund monies stolen under these circumstances.
2. Skype has indicated that it is "not liable, and is unable to refund any money that has been lost because of this incident."
After losing almost $100 in unauthorized Skype usage on June 30, 2011, I feel all Skype users should be notified of their vulnerability and be aware that neither Skype nor Paypal will refund money stolen from pre-approved agreements.This is crazy !!!
Lose a login ..create another one and do all the weird dance to POST a reply. Man ..this is where skype starts to DIE ..
Same story !!!
Account password changed suddenly and ofcourse the EMAIL was changed as well.
And IM aghast at seeing how many such accounts and for how long has these been going on and SKYPE does nothing.
A simple solution is - when a user is changing EMAIL address, do it via the OLD address only. So if i created a login name ABC thru [email protected] (the first email id) - anytime the user wants to change it, treat it like the Password change TOKEN process. This way NO UNauthorized genius can LOCK some user out.
Maybe some secret questions etc.?
other techniques.
But how does
- some steal passwords from ur systems?
- or you wud say its random generators?
- And credit card FREQUENCY usage? can users set something there? that I wud NOT change my Skype account for more 10$ everyday? or everyweek?
And ..HOPE you guys are NOT storing credit card INFO in the system?
and money wise - there shud be a way to STOP auto-recharge option? Or stop from blowing over like above. -
Hello,
I am trying to develop a kind of monopoly in Flash AS3.
For the tokens, a player have to choose a shape (as "dog", "shoe", "car", ...). All these shapes are allready designed as MovieClips, and are stored in the library (as "tDog", "tShoe", "tCar", ...).
In my code, I have a Token() class, wich is called in the main script when setting the scene. This class is an extension of a MovieClip, and is designed as follow :
class Token extends MovieClip{
public tShape:MovieClip;
public tPosition:Number;
public function token(tString:String){
switch(tString){
case "shoe":
this.tShape = new tShoe();
break;
case "car":
this.tShape = new tCar();
break;
default:
this.tShape = new tDog();
break;
this.tPosition = 0;
in my main script, I call this class as follow :
aToken:Array = new Array():
aToken[0] = new Token("shoe");
addChild(aToken[0]);
but this does not add an instance of tShoe in the scene. Could you help me ?HI,
is your Token class has this.pToken on stage?
I think what you are missing is to put addChild(this.pToken) after you create your class i.e. after new tShoe();
package scripts
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.utils.getDefinitionByName;
public class Token extends Sprite
protected var pToken:MovieClip;
public function Token(p_sClassName:String)
var ClassToken:Class;
try
ClassToken = getDefinitionByName(p_sClassName) as Class;
catch (err:*)
trace((err as Error).getStackTrace());
if (ClassToken)
pToken = new ClassToken() as MovieClip;
//now it exists but not on the display list of Token
addChild(pToken);//voila, ready:-)
else
trace("No such class available in current application domain.")
best regards
Message was edited by: Łukasz Grela
I have changed Token base class to be Sprite as it contains the MovieClip and not IS the movieclip i..e doesn't require timeline -
PKCS11 : Unable to generate AES token using C_GenerateKey function
Hi All,
I am using the Eracom's PSE HSM module. They have provided me with the PKCS11 Java interface. I am trying to generate a 128 bit AES secret key with the C_GenerateKey method. However, I keep getting a "incomplete template" exception. I am not sure what constitues a complete CK_ATTRIBUTES template when it comes to generating AES secret keys in PKCS11. This is the template that i have used for this purpose:-
public static void generateKey(CK_SESSION_HANDLE session,
CK_MECHANISM_TYPE mechanismType, String keyName, boolean bPrivate,
CK_OBJECT_HANDLE hKey) {
CK_MECHANISM keyGenMech = new CK_MECHANISM(mechanismType);
CK_ATTRIBUTE[] template = { new CK_ATTRIBUTE(CKA.TOKEN, CK_BBOOL.FALSE),
new CK_ATTRIBUTE(CKA.SENSITIVE, CK_BBOOL.FALSE),
new CK_ATTRIBUTE(CKA.LABEL, keyName.getBytes()),
new CK_ATTRIBUTE(CKA.EXTRACTABLE, CK_BBOOL.FALSE),
new CK_ATTRIBUTE(CKA.DERIVE, CK_BBOOL.FALSE),
new CK_ATTRIBUTE(CKA.VERIFY, CK_BBOOL.FALSE),
new CK_ATTRIBUTE(CKA.EXPORTABLE, CK_BBOOL.FALSE),
new CK_ATTRIBUTE(CKA.ENCRYPT, CK_BBOOL.TRUE),
new CK_ATTRIBUTE(CKA.WRAP, CK_BBOOL.TRUE),
new CK_ATTRIBUTE(CKA.UNWRAP, CK_BBOOL.TRUE),
new CK_ATTRIBUTE(CKA.MODIFIABLE, CK_BBOOL.TRUE),
new CK_ATTRIBUTE(CKA.SIGN, CK_BBOOL.FALSE),
new CK_ATTRIBUTE(CKA.DECRYPT, CK_BBOOL.TRUE),
new CK_ATTRIBUTE(CKA.IMPORT, CK_BBOOL.FALSE),
new CK_ATTRIBUTE(CKA.EXPORT, CK_BBOOL.FALSE),
new CK_ATTRIBUTE(CKA.KEY_SIZE, new Long(128)) };
CryptokiEx.C_GenerateKey(session, keyGenMech, template,
template.length, hKey);
}I am passing "AES_KEY_GEN as the mechanism as defined in PKCS11. Since PKCS11 is a standard, key generation templates ideally should not vary accross implementations.
Any help on this is greatly appreciated.I just had this same problem.
I fixed it by using
new CK_ATTRIBUTE(CKA.VALUE_LEN, new Long(16)) // 128 bit AES keyinstead of using CKA.KEY_SIZE. The documentation states that CKA.KEY_SIZE only applies to eliptic curves. -
Changing the TOKEN sequence for Authentication
I want to change the sequence of the TOKENs that we pass to the amserver LDAP authenticaiton module. May I know where should I change either the sequence of specify the needed TOKENs for this authentication module.
Hi,
There are two options.
1)Change the validity dates for those condition records to earlier date.
2)Usually the sytem checks from top to bottom.If it finds the record in first table then it will return that value and stop searching.
As your not required things are on the top,remove the condition records for them using VK12 T.Code.And maintain the records for what condition tables you are required.
Regards,
Krishna. -
Big String token... value changes while passing
Hi All,
Iam trying to create a token and pass it across layers..
the token is a String and when i pass it and receive it there the content of the token is getting changed.
kindly give me a solution..
The token is very large.
TksToken is the Session Created unique Id...
Its a String,
bNrqb3fqrgHOnkGJc6aSiiT8mBv8oiaOqALvnhOXl71KmhbIqBaRc5uO+QbaaiX6rj9hb4GXdjLPrjjDbz55rRiRgifiiRbwn51khiCKdhPqik56piDlaQDUr6bzmN1LbzfCi51egNOXl51OoArMkB4Jq71/hjDDhhnLpl1Cs30XdjLfpxr5/OPFnAfCpiPQaAjLb5bOiiaKdhPqjQrvgB8Ok68TbPrbskiQnAPCbzrngNOXl6nbqkX9hPfDqi92szr7gB9gjzrLj7iXdjLyoB4TfOvTnPv3oBDamkHcrx53+QaKdhPqgzrQoADDqiuTn6Pdhxznblb/q6nenhOXl38Rsx5IqMWJbBb5q31BqQLPi3yJaQiXdjLor4j3/QrHrzzbaACFchz6/N9cbz8KdhPqb6nLkyfMgxn7k51ijlzxiQ55o4OPa3OXl4HkpjbkqRD9pB5FfRjxn3bB+PuOgBiXdjLhpl0JmRrjhxv3hOn4qk4RaN96bQH/dhPqii9zchr4b45LqyHinkzOf4STnOz5a3OXl7qRfR1FbyLCc7fFokHGbj5jq4LefAiXdjLcoBbFqAb5jBmMr30QoAXJrl1BaiTPdhPqfiXoriiRizvMqkPMs7zJhj1JckvenhOXl6XHnAD4iyDFj5zgi35/j48T+N1Oex0XdjKLc5zEeO5Sohfbp4qFmOHLk2XFbyiKdhPqkir5fOjikkbCj7fTqOzfnOH+pQ9enhOXl7nkjPqRfPzks5jyaBnMh4uSgRyKbyGXdjKPoO9M+P1Bh79DnOjyoPiLexvPrOjzdhPqmQrMiQHAqQLEoP4LrQjnq6uRehfSnhOXl6DhoRf4hkLRrjqLs6rJqOzvnkncekiXdjLJo6rjmNnQsk9T+NbwayjneBbBpAX/dhPqg74LsjnMeRDLizqLjQPdiAr+gknTgNOXl31OnifHq6jlml55aR1fajf4bhmLoRiXdjLhmRvNq3eRgP15b51+mOHejyORhybPdhPqhzaSazn1qjz//O5CjOHHnyzyi4jwa3OXl6n9oMXngR5KiAXRj2HojBnno6D9h4GXdjLQpiDKa4DHmN5Jg5DSrh9KpOLCr4n/dhPqnRvP+R9+giqQhzuTjkfvfhaPeyP1a3OXl55/jingmkz++N8Jal5PaizNbjbUsBiXdjLT+Qbkg7D5plzin6v/nQzNr65GqiqKdhPqnkbhnl1Rn39lj4OQpRfniyLKfzvAa3OXl6aSgz5SclrF/OaOoxzOh69oo658hOGXdjLSfkn+iAH3pzrkpATfkzaFjBz7qzvPdhPqmN93pzff/OzlfNngrh5xk3fAggHAa3OXl7j2nkjD/QX9pBCRah4PayOJpx99o6iXdjKMgkLDiOfKmi9xp6D9j5yPj715jiP/dhPqgBnkaN4LgAnajMXnn5rajOT9qO9erhOXl4XSmwGLhiqJaMXBsBbCh2XMnyHGrBiXdjK=
This iam passing to the remote EJB. Where its reflecting to me like this.
bNbqb3fqb5blqQ9ibN8J/Nb5nRDxfh9ooNbSrhOXl6j8k4X9n7nofhvn+Nfdn7uToAbdr4GXdjLMayndphrfrNiQjN1ipkjHfxz7fzn/dhPqpxf5kib9cgHziwHxi3iJfQXmeQbigNOXl2X9qwWQ/R5jrxfcbkvjpBfB+OXakyGXdjLQc4zUezj9ryXDmxzH/Nn5iQzhpN8KdhPqeAP9jBrUg4jLfOqSrkLmp6jgml9xnhOXl6XHekTMo3v3rRfMmO5RqlqLqxz5qQiXdjLOeNnleQ5Nc7b9ok9brRrAezr6ckH/dhPqhkTDgBnjoiXHg7DLoBb+rkvGpj59rhOXl6jQeiTTakb+/Pbkg4DKchnQp6rIeh0XdjLfrQjknBzxmh1npP9Bp2WQs3zTnkfPdhPqoPfLo4vCiOHGfQnyrAj/qOr4qRn5a3OXl6GFgAPLc7zir558hlf8njf9bN5UpkiXdjLOfR0JrAvbeiHogl1EgkGLjNj3gx5zdhPqixvDj55ApzbPeRbia5zIrRbRej9fgNOXl7vefx5eq7uSs6r2o7iTa3v8hz1ojOGXdjLhmADbmNvdo6TNa4WQg3rwc6OTnP1PdhPqqz0SfAHxqiv3a6PMjMHfjzjwg4nbrhOXl2H4a3fUqlrbk4HNhQH9bR9Gpk52oN0XdjLxpjjNfynzmwXdsjvDfluFekHv+N5zdhPqnxzSg3r1bx8PpyHgjzvkr3fmjxiOrhOXl458pwXUhRj8ozb+gyrAqkXInRz5q7iXdjLKihyLg4DQoOGJc6bSkBjxo6SLghbPdhPqpyyNrQyKc2X8fyyMaknFj5zLo657gNOXl49xp4H/jymQalnar6LHbxfChP1co6iXdjKShO9K+NvHeQ9ToNvHaBmFi5aLkymKdhPq+OvQbOLmqQP+g454j6HOrOSSi3jRrhOXl51kjQ8KbAD5hkyOn3nSgzDarjfNqBiXdjKJgNaQpl4OnyHyj45Ls6r2f7fPeOD/dhPqaBbyhzrifQjGo71IkhjSi55Ogjv9nhOXl5Dbqz9obkjAmBD3p3nNnBfUqO9Ehh0XdjLIkh8Rhjz4sAn5aQqJb3rBn5fxrA9PdhPqrj9An31woAHhrBaOakTDfy9koQP7nhOXl4LDqADjkyLcfiqQc75emjvKiyrRq4GXdjLSaxbHs4bEijjhpN0TpOuFskP4iiv/dhPqn6HKs5borPnci5uPpjmPeMXKiiXOgNOXl4POg5n8eizCg65RhQLbnk5Ng2GOaliXdjL8fzDSk6LAsiSPfhb6mjuNbyLKpzqKdhPqpj0Khh1+ez5vk5vknNfOciHnk4jDa3OXl3rBkx8KmQ9dq7aShAzvnRzG/N9hjRiXdjKRjlmFg597o7flaiLCgkbwhR9mj6j/dhPqmjfvi7mKiRzopQzFoAPjaQqLnl9JgNOXl4OQjR5FeBrnclrhghzioQXLpRD2jx0XdjK=`
Maybe you are looking for
-
Error while uploading schema for Master Catalog
Guys, I got the below error while uploading Schema with custom char for Master catalog; "Error in row 11 of the CSV file" where as the 11th row is "DataType;INTEGER;integer;Integer Type" in the csv file. Please suggest. Regards TGB
-
How do I create photo folders in my iPad
How do I create photo folders in my IPad ?
-
I Want to run dual screens off my macbook pro
What add-ons and cables do I need to make this happen? Cheers
-
KM Document and images anonymous problem
We are using an anonymous portal and we display km documents. The km iviews are set to anonymous (authentication scheme) and are being displayed correctly. However, references to KM images require authentication. Any thoughts? Noë
-
I'm actually new to Solaris on x86 (worked with Cadence on Ultra Sparc). I succesfully installed Solaris 10 on the slave HD of a 'Packard Bell' Desktop computer. On the master I have Fedora installed. Currently I can only boot Solaris via the BIOS me