logo资料库

GP规范 GP Systems Scripting Language.pdf

第1页 / 共219页
第2页 / 共219页
第3页 / 共219页
第4页 / 共219页
第5页 / 共219页
第6页 / 共219页
第7页 / 共219页
第8页 / 共219页
资料共219页,剩余部分请下载后查看
Introduction
Summary
Scope
Audience
Normative References
List of References
GlobalPlatform Document Navigation
Terminology and Definitions
Abbreviations and Notations
Conventions
Revisions History
Overview of Changes in Version 1.1.0 over Version 1.0
Overview
GlobalPlatform Initiative
GlobalPlatform Card Customization Requirements
ECMAScript Language Choice
GlobalPlatform Scripts Overview
Script Language
Script Processing
Creating Objects for an Application (excluding Security Domain)
Creating Objects for a Security Domain Application (including Card Manager)
Creating Objects for a Smart Card
Script Object Categories
Overview of GP Scripting Language Native ECMAScript Objects
Deserializing Profile XML Content into Scripting Objects
Deserializing the XML Documents into the Profile Property
Deserialization of Elements with Multiple Occurrances
Deserializing DataElement and Declaration Elements into the Data Property
Impact of the ReadWrite Attribute on Deserialization
Impact of the Encoding Attribute on Deserializiation
Impact of the Tag Attribute on Deserializiation
Impact of the Value, External and Optional Attributes on Deserializiation
Executing Successive Scripts and Data Scoping Between Scripts
Deserializing Key and KeyDeclaration Elements into the Key Property
Executing Successive Scripts and Key Scoping Between Scripts
Deserializing Function Elements into Scripting Language Functions
Creating and Using Secure Channel Objects
Creating Secure Channel Objects
Opening Secure Channels
Using Secure Channels
Global GP Scripting Language Constants
GlobalPlatform Object Error Handling
GlobalPlatform Scripting Objects
GP Scripting Language Native ECMAScript Objects
GPError
Summary
Constants
Properties
className
error
message
name
reason
Methods
Constructor
Crypto
Summary
Constants
Properties
Methods
Constructor()
decrypt()
decryptEncrypt()
deriveKey()
digest()
encrypt()
generateKey()
generateKeyPair()
generateRandom()
sign()
unwrap()
unwrapWrap()
verify()
wrap()
GPSystem
Summary
Constants
Properties
Methods
Constructor
dateTimeByteString()
getSystemID()
getVendorObject()
getVersion()
trace()
wait()
Application
Summary
Constants
Properties
aid
card
crypto
data[]
key[]
lifecycle.name
lifecycle.value
order
profile
secureChannel
Methods
Constructor
openSecureChannel()
select()
sendApdu()
GPApplication
Summary
Constants
Properties
aid
appSpecificInstallParams
card
crypto
data[]
key[]
lifecycle.name
lifecycle.value
nonVolatileDataSpaceLimit
order
privilege
profile
securityDomain
volatileDataSpaceLimit
Methods
Constructor
getData()
getStatus()
putKey()
select()
sendApdu()
setStatus()
storeData()
GPSecurityDomain
Summary
Constants
Properties
aid
appSpecificInstallParams
card
crypto
data[]
key[]
lifecycle.name
lifecycle.value
nonVolatileDataSpaceLimit
order
privilege
profile
secureChannel
securityDomain
volatileDataSpaceLimit
Methods
Constructor
deleteAID()
getData()
getStatus()
installForExtradition()
installForInstall()
installForInstallAndSelectable()
installForLoad()
installForPersonalization()
load()
loadByName()
loadWithProfile()
openSecureChannel()
putKey()
select()
sendApdu()
setStatus()
storeData()
SecureChannel
Summary
Constants
Properties
crypto
state
GPScp01
Summary
Constants
Properties
cardChallenge
cardCryptogram
crypto
diversificationData
hostChallenge
keyIndex
keyVersion
mac
option
securityLevel
state
Methods
Constructor
decryptEncryptKek()
encryptKek()
externalAuthenticate()
getDekKey()
initializeUpdate()
setDekKey()
setEncKey()
setMacKey()
unwrapWrapKek()
GPScp02
Summary
Constants
Properties
cardChallenge
cardCryptogram
crypto
diversificationData
hostChallenge
keyVersion
option
rmac
securityLevel
sequenceCounter
smac
state
Methods
Constructor
beginRMac()
decryptEncryptDek()
encryptDek()
endRMac()
externalAuthenticate()
getDekKey()
initializeUpdate()
setBaseKey()
setDekKey()
setEncKey()
setMacKey()
unwrapWrapDek()
Card
Summary
Constants
Properties
profile
response
SW
SW1
SW2
Methods
Constructor
baudRate()
clock()
powerDown()
pps()
reset()
sendApdu()
vcc()
Key
Summary
Constants
Properties
Methods
Constructor
getAttribute()
getComponent()
getEnd()
getKcv()
getOwner()
getProfileID()
getSize()
getStart()
getType()
getUsage()
getVersion()
getWrapKey()
setAttribute()
setComponent()
setEnd()
setOwner()
setSize()
setStart()
setType()
setUsage()
setVersion()
Atr
Summary
Constants
Properties
formatByte
historicalBytes
interfaceBytes
tckByte
Methods
Constructor
toByteString()
ByteBuffer
Summary
Constants
Properties
length
Methods
Constructor
append()
byteAt()
clear()
copy()
find()
insert()
toByteString()
toString()
ByteString
Summary
Constants
Properties
length
Methods
Constructor
and()
byteAt()
bytes()
concat()
crc()
equals()
find()
getL()
getLV()
left()
neg()
not()
or()
pad()
right()
startsWith()
toBase64()
toBcd()
toHex()
toSigned()
toString()
toUnsigned()
xor()
TLV
Summary
Constants
Properties
encodingMode
size
Methods
Constructor
getL()
getLV()
getTag()
getTLV()
getTV()
getValue()
TLVList
Summary
Constants
Properties
encodingMode
length
Methods
Constructor
append()
appendValue()
appendValueIndex()
deleteByIndex()
deleteByTag()
find()
findIndex()
index()
toByteString()
updateValue()
updateValueIndex()
Sample Scripts
Example Scripts for Data Preparation
Example Open Secure Channel Script
Example Script for Loading Applets
Example Script for Installing Applet
Complete Example with Scripts for Data Preparation and Personalization
TLV Length Coding
Implicit Secure Channel Modification of APDU Commands
GlobalPlatform Systems Scripting Language Specification An ECMAScript Representation Version 1.1.0 24 September 2003 Copyright  2003 GlobalPlatform Inc. All Rights Reserved. The technology provided or described herein is subject to updates, revisions, and extensions by GlobalPlatform. Use of this information is governed by the GlobalPlatform license agreement and any use inconsistent with that agreement is strictly prohibited.
9/24/2003 GlobalPlatform Systems Scripting Language Specification v1.1.0 ii Table of Contents 1. INTRODUCTION....................................................................................................................................... 1 1.1 SUMMARY......................................................................................................................................... 1 1.2 SCOPE ............................................................................................................................................. 1 1.3 AUDIENCE ........................................................................................................................................ 2 1.4 NORMATIVE REFERENCES ................................................................................................................. 2 1.4.1 List of References ................................................................................................................... 2 1.4.2 GlobalPlatform Document Navigation ..................................................................................... 5 1.5 TERMINOLOGY AND DEFINITIONS ....................................................................................................... 5 1.6 ABBREVIATIONS AND NOTATIONS ..................................................................................................... 11 1.7 CONVENTIONS ................................................................................................................................ 12 1.8 REVISIONS HISTORY ....................................................................................................................... 12 1.8.1 Overview of Changes in Version 1.1.0 over Version 1.0 ...................................................... 12 2. OVERVIEW.............................................................................................................................................16 2.1 GLOBALPLATFORM INITIATIVE.......................................................................................................... 16 2.2 GLOBALPLATFORM CARD CUSTOMIZATION REQUIREMENTS .............................................................. 17 3. ECMASCRIPT LANGUAGE CHOICE....................................................................................................19 4. GLOBALPLATFORM SCRIPTS OVERVIEW........................................................................................21 4.1 SCRIPT LANGUAGE ......................................................................................................................... 21 4.2 SCRIPT PROCESSING ...................................................................................................................... 21 Creating Objects for an Application (excluding Security Domain) ........................................ 23 Creating Objects for a Security Domain Application (including Card Manager) ................... 26 Creating Objects for a Smart Card........................................................................................ 32 4.3 SCRIPT OBJECT CATEGORIES.......................................................................................................... 34 4.3.1 Overview of GP Scripting Language Native ECMAScript Objects........................................ 34 4.4 DESERIALIZING PROFILE XML CONTENT INTO SCRIPTING OBJECTS .................................................. 42 Deserializing the XML Documents into the Profile Property ................................................. 42 Deserialization of Elements with Multiple Occurrances ................................................. 43 Deserializing DataElement and Declaration Elements into the Data Property ..................... 45 Impact of the ReadWrite Attribute on Deserialization .................................................... 47 Impact of the Encoding Attribute on Deserializiation ..................................................... 47 Impact of the Tag Attribute on Deserializiation .............................................................. 47 Impact of the Value, External and Optional Attributes on Deserializiation .................... 48 Executing Successive Scripts and Data Scoping Between Scripts ............................... 49 Deserializing Key and KeyDeclaration Elements into the Key Property ............................... 50 Executing Successive Scripts and Key Scoping Between Scripts................................. 51 Deserializing Function Elements into Scripting Language Functions ................................... 51 4.5 CREATING AND USING SECURE CHANNEL OBJECTS.......................................................................... 52 4.5.1 Creating Secure Channel Objects......................................................................................... 52 4.5.2 Opening Secure Channels .................................................................................................... 52 4.4.2.1 4.4.2.2 4.4.2.3 4.4.2.4 4.4.2.5 4.2.1 4.2.2 4.2.3 4.4.3.1 4.4.1 4.4.2 4.4.1.1 4.4.3 4.4.4 Copyright  2003 GlobalPlatform Inc. All Rights Reserved. The technology provided or described herein is subject to updates, revisions, and extensions by GlobalPlatform. Use of this information is governed by the GlobalPlatform license agreement and any use inconsistent with that agreement is strictly prohibited.
9/24/2003 GlobalPlatform Systems Scripting Language Specification v1.1.0 iii 4.5.3 7.1.2 7.1.1.1 7.1.1.2 7.1.1.3 Using Secure Channels......................................................................................................... 53 5. GLOBAL GP SCRIPTING LANGUAGE CONSTANTS.........................................................................54 6. GLOBALPLATFORM OBJECT ERROR HANDLING ...........................................................................55 7. GLOBALPLATFORM SCRIPTING OBJECTS ......................................................................................56 7.1 GP SCRIPTING LANGUAGE NATIVE ECMASCRIPT OBJECTS ............................................................. 56 7.1.1 GPError ................................................................................................................................. 58 Summary ........................................................................................................................58 Constants ....................................................................................................................... 58 Properties....................................................................................................................... 58 7.1.1.3.1 className.................................................................................................................. 58 7.1.1.3.2 error............................................................................................................................ 59 7.1.1.3.3 message..................................................................................................................... 59 7.1.1.3.4 name .......................................................................................................................... 59 7.1.1.3.5 reason ........................................................................................................................ 59 7.1.1.4 Methods.......................................................................................................................... 59 7.1.1.4.1 Constructor................................................................................................................. 59 Crypto .................................................................................................................................... 60 Summary ........................................................................................................................60 7.1.2.1 Constants ....................................................................................................................... 60 7.1.2.2 7.1.2.3 Properties....................................................................................................................... 61 7.1.2.4 Methods.......................................................................................................................... 61 7.1.2.4.1 Constructor() .............................................................................................................. 61 7.1.2.4.2 decrypt() ..................................................................................................................... 61 7.1.2.4.3 decryptEncrypt()......................................................................................................... 62 7.1.2.4.4 deriveKey() ................................................................................................................. 63 7.1.2.4.5 digest() .......................................................................................................................64 7.1.2.4.6 encrypt() ..................................................................................................................... 64 7.1.2.4.7 generateKey()............................................................................................................. 65 7.1.2.4.8 generateKeyPair() ...................................................................................................... 65 7.1.2.4.9 generateRandom() ..................................................................................................... 66 7.1.2.4.10 sign() ........................................................................................................................ 66 7.1.2.4.11 unwrap() ................................................................................................................... 67 7.1.2.4.12 unwrapWrap()........................................................................................................... 68 7.1.2.4.13 verify() ...................................................................................................................... 69 7.1.2.4.14 wrap() ....................................................................................................................... 69 7.1.3 GPSystem ............................................................................................................................. 71 Summary ........................................................................................................................71 7.1.3.1 Constants ....................................................................................................................... 71 7.1.3.2 7.1.3.3 Properties....................................................................................................................... 71 7.1.3.4 Methods.......................................................................................................................... 71 7.1.3.4.1 Constructor................................................................................................................. 71 7.1.3.4.2 dateTimeByteString() ................................................................................................. 71 7.1.3.4.3 getSystemID() ............................................................................................................ 72 Copyright  2003 GlobalPlatform Inc. All Rights Reserved. The technology provided or described herein is subject to updates, revisions, and extensions by GlobalPlatform. Use of this information is governed by the GlobalPlatform license agreement and any use inconsistent with that agreement is strictly prohibited.
9/24/2003 GlobalPlatform Systems Scripting Language Specification v1.1.0 iv 7.1.4 7.1.5.1 7.1.5.2 7.1.5.3 7.1.4.1 7.1.4.2 7.1.4.3 7.1.3.4.4 getVendorObject()...................................................................................................... 72 7.1.3.4.5 getVersion()................................................................................................................ 73 7.1.3.4.6 trace() ......................................................................................................................... 73 7.1.3.4.7 wait()........................................................................................................................... 74 Application ............................................................................................................................. 75 Summary ........................................................................................................................75 Constants ....................................................................................................................... 75 Properties....................................................................................................................... 75 7.1.4.3.1 aid............................................................................................................................... 75 7.1.4.3.2 card ............................................................................................................................ 76 7.1.4.3.3 crypto.......................................................................................................................... 76 7.1.4.3.4 data[] .......................................................................................................................... 76 7.1.4.3.5 key[]............................................................................................................................ 76 lifecycle.name............................................................................................................. 77 7.1.4.3.6 7.1.4.3.7 lifecycle.value............................................................................................................. 77 7.1.4.3.8 order ........................................................................................................................... 77 7.1.4.3.9 profile.......................................................................................................................... 77 7.1.4.3.10 secureChannel ......................................................................................................... 77 7.1.4.4 Methods.......................................................................................................................... 78 7.1.4.4.1 Constructor................................................................................................................. 78 7.1.4.4.2 openSecureChannel() ................................................................................................ 78 7.1.4.4.3 select()........................................................................................................................ 78 7.1.4.4.4 sendApdu()................................................................................................................. 79 7.1.5 GPApplication........................................................................................................................ 81 Summary ........................................................................................................................81 Constants ....................................................................................................................... 81 Properties....................................................................................................................... 82 7.1.5.3.1 aid............................................................................................................................... 82 7.1.5.3.2 appSpecificInstallParams........................................................................................... 82 7.1.5.3.3 card ............................................................................................................................ 82 7.1.5.3.4 crypto.......................................................................................................................... 82 7.1.5.3.5 data[] .......................................................................................................................... 82 7.1.5.3.6 key[]............................................................................................................................ 83 lifecycle.name............................................................................................................. 83 7.1.5.3.7 7.1.5.3.8 lifecycle.value............................................................................................................. 83 7.1.5.3.9 nonVolatileDataSpaceLimit ........................................................................................ 84 7.1.5.3.10 order ......................................................................................................................... 84 7.1.5.3.11 privilege .................................................................................................................... 84 7.1.5.3.12 profile........................................................................................................................84 7.1.5.3.13 securityDomain ........................................................................................................ 85 7.1.5.3.14 volatileDataSpaceLimit............................................................................................. 85 7.1.5.4 Methods.......................................................................................................................... 85 7.1.5.4.1 Constructor................................................................................................................. 85 7.1.5.4.2 getData() .................................................................................................................... 85 7.1.5.4.3 getStatus().................................................................................................................. 86 Copyright  2003 GlobalPlatform Inc. All Rights Reserved. The technology provided or described herein is subject to updates, revisions, and extensions by GlobalPlatform. Use of this information is governed by the GlobalPlatform license agreement and any use inconsistent with that agreement is strictly prohibited.
9/24/2003 GlobalPlatform Systems Scripting Language Specification v1.1.0 v 7.1.6.1 7.1.6.2 7.1.6.3 7.1.5.4.4 putKey()...................................................................................................................... 86 7.1.5.4.5 select()........................................................................................................................ 88 7.1.5.4.6 sendApdu()................................................................................................................. 89 7.1.5.4.7 setStatus() .................................................................................................................. 90 7.1.5.4.8 storeData() ................................................................................................................. 91 7.1.6 GPSecurityDomain................................................................................................................ 92 Summary ........................................................................................................................92 Constants ....................................................................................................................... 93 Properties....................................................................................................................... 93 7.1.6.3.1 aid............................................................................................................................... 93 7.1.6.3.2 appSpecificInstallParams........................................................................................... 93 7.1.6.3.3 card ............................................................................................................................ 93 7.1.6.3.4 crypto.......................................................................................................................... 93 7.1.6.3.5 data[] .......................................................................................................................... 93 7.1.6.3.6 key[]............................................................................................................................ 94 7.1.6.3.7 lifecycle.name............................................................................................................. 94 7.1.6.3.8 lifecycle.value............................................................................................................. 94 7.1.6.3.9 nonVolatileDataSpaceLimit ........................................................................................ 95 7.1.6.3.10 order ......................................................................................................................... 95 7.1.6.3.11 privilege .................................................................................................................... 95 7.1.6.3.12 profile........................................................................................................................95 7.1.6.3.13 secureChannel ......................................................................................................... 96 7.1.6.3.14 securityDomain ........................................................................................................ 96 7.1.6.3.15 volatileDataSpaceLimit............................................................................................. 96 7.1.6.4 Methods.......................................................................................................................... 96 7.1.6.4.1 Constructor................................................................................................................. 96 7.1.6.4.2 deleteAID() ................................................................................................................. 96 7.1.6.4.3 getData() .................................................................................................................... 97 7.1.6.4.4 getStatus().................................................................................................................. 97 installForExtradition() ................................................................................................. 98 7.1.6.4.5 installForInstall()......................................................................................................... 99 7.1.6.4.6 7.1.6.4.7 installForInstallAndSelectable().................................................................................. 99 installForLoad() ........................................................................................................100 7.1.6.4.8 installForPersonalization()........................................................................................101 7.1.6.4.9 load() ......................................................................................................................101 7.1.6.4.10 7.1.6.4.11 loadByName() ........................................................................................................102 7.1.6.4.12 loadWithProfile().....................................................................................................103 7.1.6.4.13 openSecureChannel() ............................................................................................104 7.1.6.4.14 putKey()..................................................................................................................105 7.1.6.4.15 select()....................................................................................................................106 7.1.6.4.16 sendApdu().............................................................................................................107 7.1.6.4.17 setStatus() ..............................................................................................................108 7.1.6.4.18 storeData() .............................................................................................................108 SecureChannel....................................................................................................................110 Summary ......................................................................................................................110 7.1.7 7.1.7.1 Copyright  2003 GlobalPlatform Inc. All Rights Reserved. The technology provided or described herein is subject to updates, revisions, and extensions by GlobalPlatform. Use of this information is governed by the GlobalPlatform license agreement and any use inconsistent with that agreement is strictly prohibited.
9/24/2003 GlobalPlatform Systems Scripting Language Specification v1.1.0 vi 7.1.7.2 7.1.7.3 7.1.9.1 7.1.9.2 7.1.9.3 7.1.8.1 7.1.8.2 7.1.8.3 Constants .....................................................................................................................110 Properties.....................................................................................................................110 7.1.7.3.1 crypto........................................................................................................................110 7.1.7.3.2 state..........................................................................................................................110 7.1.8 GPScp01 .............................................................................................................................111 Summary ......................................................................................................................111 Constants .....................................................................................................................111 Properties.....................................................................................................................111 7.1.8.3.1 cardChallenge ..........................................................................................................111 7.1.8.3.2 cardCryptogram........................................................................................................111 7.1.8.3.3 crypto........................................................................................................................112 7.1.8.3.4 diversificationData....................................................................................................112 7.1.8.3.5 hostChallenge ..........................................................................................................112 7.1.8.3.6 keyIndex ...................................................................................................................112 7.1.8.3.7 keyVersion................................................................................................................112 7.1.8.3.8 mac...........................................................................................................................112 7.1.8.3.9 option........................................................................................................................112 7.1.8.3.10 securityLevel ..........................................................................................................113 7.1.8.3.11 state........................................................................................................................113 7.1.8.4 Methods........................................................................................................................113 7.1.8.4.1 Constructor...............................................................................................................113 7.1.8.4.2 decryptEncryptKek().................................................................................................113 7.1.8.4.3 encryptKek() .............................................................................................................114 7.1.8.4.4 externalAuthenticate() ..............................................................................................114 7.1.8.4.5 getDekKey() .............................................................................................................115 7.1.8.4.6 initializeUpdate().......................................................................................................115 7.1.8.4.7 setDekKey()..............................................................................................................115 7.1.8.4.8 setEncKey()..............................................................................................................116 7.1.8.4.9 setMacKey() .............................................................................................................116 7.1.8.4.10 unwrapWrapKek() ..................................................................................................116 7.1.9 GPScp02 .............................................................................................................................118 Summary ......................................................................................................................118 Constants .....................................................................................................................118 Properties.....................................................................................................................118 7.1.9.3.1 cardChallenge ..........................................................................................................118 7.1.9.3.2 cardCryptogram........................................................................................................118 7.1.9.3.3 crypto........................................................................................................................119 7.1.9.3.4 diversificationData....................................................................................................119 7.1.9.3.5 hostChallenge ..........................................................................................................119 7.1.9.3.6 keyVersion................................................................................................................119 7.1.9.3.7 option........................................................................................................................119 7.1.9.3.8 rmac .........................................................................................................................119 7.1.9.3.9 securityLevel ............................................................................................................119 7.1.9.3.10 sequenceCounter...................................................................................................120 7.1.9.3.11 smac.......................................................................................................................120 Copyright  2003 GlobalPlatform Inc. All Rights Reserved. The technology provided or described herein is subject to updates, revisions, and extensions by GlobalPlatform. Use of this information is governed by the GlobalPlatform license agreement and any use inconsistent with that agreement is strictly prohibited.
9/24/2003 GlobalPlatform Systems Scripting Language Specification v1.1.0 vii 7.1.9.3.12 state........................................................................................................................120 7.1.9.4 Methods........................................................................................................................120 7.1.9.4.1 Constructor...............................................................................................................120 7.1.9.4.2 beginRMac().............................................................................................................120 7.1.9.4.3 decryptEncryptDek() ................................................................................................121 7.1.9.4.4 encryptDek().............................................................................................................121 7.1.9.4.5 endRMac()................................................................................................................122 7.1.9.4.6 externalAuthenticate() ..............................................................................................122 7.1.9.4.7 getDekKey() .............................................................................................................123 7.1.9.4.8 initializeUpdate().......................................................................................................123 7.1.9.4.9 setBaseKey()............................................................................................................123 7.1.9.4.10 setDekKey()............................................................................................................124 7.1.9.4.11 setEncKey()............................................................................................................124 7.1.9.4.12 setMacKey() ...........................................................................................................124 7.1.9.4.13 unwrapWrapDek() ..................................................................................................125 7.1.10 Card.....................................................................................................................................126 7.1.10.1 Summary ......................................................................................................................126 7.1.10.2 Constants .....................................................................................................................126 7.1.10.3 Properties.....................................................................................................................126 7.1.10.3.1 profile......................................................................................................................126 7.1.10.3.2 response.................................................................................................................127 7.1.10.3.3 SW..........................................................................................................................127 7.1.10.3.4 SW1........................................................................................................................127 7.1.10.3.5 SW2........................................................................................................................128 7.1.10.4 Methods........................................................................................................................128 7.1.10.4.1 Constructor.............................................................................................................128 7.1.10.4.2 baudRate() .............................................................................................................128 7.1.10.4.3 clock().....................................................................................................................128 7.1.10.4.4 powerDown()..........................................................................................................129 7.1.10.4.5 pps() .......................................................................................................................129 7.1.10.4.6 reset() .....................................................................................................................130 7.1.10.4.7 sendApdu().............................................................................................................130 7.1.10.4.8 vcc()........................................................................................................................131 7.1.11 Key ......................................................................................................................................133 7.1.11.1 Summary ......................................................................................................................133 7.1.11.2 Constants .....................................................................................................................134 7.1.11.3 Properties.....................................................................................................................134 7.1.11.4 Methods........................................................................................................................134 7.1.11.4.1 Constructor.............................................................................................................134 7.1.11.4.2 getAttribute()...........................................................................................................135 7.1.11.4.3 getComponent() .....................................................................................................135 7.1.11.4.4 getEnd()..................................................................................................................136 7.1.11.4.5 getKcv() ..................................................................................................................136 7.1.11.4.6 getOwner() .............................................................................................................136 7.1.11.4.7 getProfileID() ..........................................................................................................137 Copyright  2003 GlobalPlatform Inc. All Rights Reserved. The technology provided or described herein is subject to updates, revisions, and extensions by GlobalPlatform. Use of this information is governed by the GlobalPlatform license agreement and any use inconsistent with that agreement is strictly prohibited.
9/24/2003 GlobalPlatform Systems Scripting Language Specification v1.1.0 viii 7.1.11.4.8 getSize() .................................................................................................................137 7.1.11.4.9 getStart() ................................................................................................................138 7.1.11.4.10 getType() ..............................................................................................................138 7.1.11.4.11 getUsage()............................................................................................................138 7.1.11.4.12 getVersion()..........................................................................................................139 7.1.11.4.13 getWrapKey() .......................................................................................................139 7.1.11.4.14 setAttribute().........................................................................................................140 7.1.11.4.15 setComponent() ...................................................................................................140 7.1.11.4.16 setEnd()................................................................................................................141 7.1.11.4.17 setOwner()............................................................................................................141 7.1.11.4.18 setSize() ...............................................................................................................142 7.1.11.4.19 setStart()...............................................................................................................142 7.1.11.4.20 setType() ..............................................................................................................143 7.1.11.4.21 setUsage()............................................................................................................143 7.1.11.4.22 setVersion()..........................................................................................................144 7.1.12 Atr ........................................................................................................................................145 7.1.12.1 Summary ......................................................................................................................145 7.1.12.2 Constants .....................................................................................................................145 7.1.12.3 Properties.....................................................................................................................145 7.1.12.3.1 formatByte..............................................................................................................145 7.1.12.3.2 historicalBytes ........................................................................................................145 interfaceBytes.........................................................................................................145 7.1.12.3.3 7.1.12.3.4 tckByte....................................................................................................................145 7.1.12.4 Methods........................................................................................................................146 7.1.12.4.1 Constructor.............................................................................................................146 toByteString() .........................................................................................................146 7.1.12.4.2 7.1.13 ByteBuffer............................................................................................................................147 7.1.13.1 Summary ......................................................................................................................147 7.1.13.2 Constants .....................................................................................................................148 7.1.13.3 Properties.....................................................................................................................148 length......................................................................................................................148 7.1.13.4 Methods........................................................................................................................148 7.1.13.4.1 Constructor.............................................................................................................148 7.1.13.4.2 append() .................................................................................................................148 7.1.13.4.3 byteAt()...................................................................................................................149 7.1.13.4.4 clear() .....................................................................................................................150 7.1.13.4.5 copy() .....................................................................................................................150 find() .......................................................................................................................151 7.1.13.4.6 insert() ....................................................................................................................151 7.1.13.4.7 7.1.13.4.8 toByteString() .........................................................................................................152 toString().................................................................................................................152 7.1.13.4.9 7.1.14 ByteString ............................................................................................................................154 7.1.14.1 Summary ......................................................................................................................154 7.1.14.2 Constants .....................................................................................................................155 Properties................................................................................................................................155 7.1.13.3.1 Copyright  2003 GlobalPlatform Inc. All Rights Reserved. The technology provided or described herein is subject to updates, revisions, and extensions by GlobalPlatform. Use of this information is governed by the GlobalPlatform license agreement and any use inconsistent with that agreement is strictly prohibited.
分享到:
收藏