適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: AIR 30.0 和更早版本, Flash Player 30.0 和更早版本, Flash Lite 4
Flex 4.6 和更早版本, Flash Pro CS6 和更早版本
隱藏篩選
flash.security 

XMLSignatureValidator  - AS3

套件x

最上層
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

語言元素

全域常數
全域函數
運算子
陳述式、關鍵字和指令
特殊類型

附錄

新增內容
編譯器錯誤
編譯器警告
執行階段錯誤
移轉至 ActionScript 3
支援的字元集
僅限 MXML 標籤
移動 XML 元素
Timed Text 標籤
不建議元素清單
AccessibilityImplementation 常數
如何使用 ActionScript 範例
法律聲明
套件flash.security
類別public class XMLSignatureValidator
繼承XMLSignatureValidator Inheritance EventDispatcher Inheritance Object

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

XMLSignatureValidator 類別會驗證 XML 簽章檔案格式是否正確且未修改,也可以選擇驗證它是否使用連結到受信任數位憑證的金鑰進行簽署。

AIR 描述檔支援:所有桌上型電腦作業系統與 AIR for TV 裝置都支援此項功能,但行動裝置不支援。您可以使用 XMLSignatureValidator.isSupported 屬性測試執行階段的支援狀況。如需有關跨多個描述檔之 API 支援的詳細資訊,請參閱 AIR 描述檔支援

XMLSignatureValidator 會實作 W3C 建議事項的「XML 簽章語法及處理」(XML-Signature Syntax and Processing) 的子集,不應被視為符合的實作。此建議事項支援的子集包括:

  • 所有的核心簽章語法,KeyInfo 元素除外。
  • KeyInfo 元素只支援 X509Data 元素。
  • X509Data 元素只支援 X509Certificate 元素。
  • SHA256 摘要方法演算法。
  • PKCS1 簽署演算法。
  • 「不含註解、規範化的 XML」規範化方法與轉換演算法。
  • 採用其他簽章語法的 Manifest 元素。

您必須提供 IURIDereferencer 實作以驗證 XML 簽章。這個實作類別會負責解析簽章檔案的 SignedInfo 元素所指定的 URI,並在實作 IDataInput 介面的物件 (如 ByteArray) 中傳回受到參考的資料。

若要驗證與受信任憑證的簽署憑證鏈結,XML 簽章必須包含建立 X509Certificate 元素中鏈結所需的憑證,或者您必須使用 addCertificate() 方法來提供建立鏈結所需的憑證。

若要驗證 XMLSignature:

  1. 建立 XMLSignatureValidator 類別的實體。
  2. 將實體的 uriDereferencer 屬性設定為您 IURIDereferencer 實作類別的實體。
  3. 視需要使用 addCertificate() 方法提供 DER 編碼憑證,以建立憑證信任鏈結。
  4. 呼叫 XMLSignatureValidator verify 方法,並傳入要驗證的簽章。
  5. 在 XMLSignatureValidator 物件傳送 complete 事件之後,檢查 validityStatus 屬性。

關於簽章狀態:

XML 簽章有效性可以是 valid、invalid 或 unknown。整體狀態取決於簽章檔案個別組件的驗證狀態:

  • digestStatus -- 對 SignedInfo 元素所計算之簽章密碼編譯的有效性。可以是 validinvalidunknown
  • identityStatus -- 簽署憑證的有效性。如果憑證已過期、被撤銷或遭竄改,則狀態為 invalid。如果憑證無法鏈結到受信任的根憑證,則狀態為 unknown。如果摘要無效便不檢查憑證。若未進行檢查,其狀態將報告為 unknown
  • referencesStatus -- 簽章檔案 SignedInfo 元素中參考所提出之資料的有效性。可以是 validinvalidunknown。如果摘要或憑證無效便不檢查參考。根據 referencesValidationSetting 屬性的設定,亦可能略過而不檢查參考。若未進行檢查,其狀態將報告為 unknown

validityStatus 屬性報告的簽章有效性可以是:

  • valid -- 如果 referencesStatusdigestStatusidentityStatus 都是 valid
  • invalid -- 如果有任何個別的狀態為 invalid
  • unknown — 如果 referencesStatusdigestStatusidentityStatusunknown

規範化限制:

規範化 XML 文件時,AIR 中的 XML 引擎不一定會產生預期的 XML 字串。因此,建議您避免將元素間的空白字元放入封內或分離簽章文件中,而且請勿在簽章文件內部重新定義命名空間。在這兩種情況下,AIR 可能不會使用與原始文件相同的字元序列來重新建立文件,因此驗證將會失敗。

檢視範例

詳細資訊

相關 API 元素



公用屬性
 屬性定義自
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
      digestStatus : String
[唯讀] 對簽章 SignedInfo 元素所計算之密碼編譯簽章的有效性狀態。
XMLSignatureValidator
      identityStatus : String
[唯讀] 簽署憑證的有效性狀態。
XMLSignatureValidator
      isSupported : Boolean
[靜態] [唯讀] 如果目前的平台支援 XMLSignatureValidator 類別,則 isSupported 屬性會設為 true,否則會設為 false。
XMLSignatureValidator
      referencesStatus : String
[唯讀] 在簽章 SignedInfo 元素中,參考中資料的有效性狀態。
XMLSignatureValidator
      referencesValidationSetting : String
指定檢查參考的條件。
XMLSignatureValidator
      revocationCheckSetting : String
指定如何檢查憑證撤銷。
XMLSignatureValidator
      signerCN : String
[唯讀] 簽署憑證的「一般名稱」欄位。
XMLSignatureValidator
      signerDN : String
[唯讀] 簽署憑證的「辨別名稱」欄位。
XMLSignatureValidator
      signerExtendedKeyUsages : Array
[唯讀] 陣列,包含簽署憑證中列出的「擴充金鑰使用方法 OID」。
XMLSignatureValidator
      signerTrustSettings : Array
[唯讀] 陣列,包含簽署憑證的信任設定。
XMLSignatureValidator
      uriDereferencer : IURIDereferencer
IURIDereferencer 實作。
XMLSignatureValidator
      useSystemTrustStore : Boolean
指定系統信任儲存區中的憑證可用來建立鏈結。
XMLSignatureValidator
      validityStatus : String
[唯讀] 已驗證之 XML 簽章的有效性狀態。
XMLSignatureValidator
公用方法
 方法定義自
  
建立 XMLSignatureValidator 物件。
XMLSignatureValidator
  
    addCertificate(cert:ByteArray, trusted:Boolean):*
加入 x509 憑證以建立鏈結。
XMLSignatureValidator
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。
EventDispatcher
 Inherited
會將事件傳送到事件流程。
EventDispatcher
 Inherited
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。
EventDispatcher
 Inherited
指出物件是否有已定義的指定屬性。
Object
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
會從 EventDispatcher 物件移除偵聽程式。
EventDispatcher
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
 Inherited
會傳回指定之物件的基本值。
Object
  
    verify(signature:XML):void
驗證指定的簽章。
XMLSignatureValidator
 Inherited
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。
EventDispatcher
事件
 事件 摘要 定義自
 Inherited[廣播事件] 當 Flash Player 或 AIR 應用程式取得作業系統焦點並成為作用中時傳送。EventDispatcher
  
    complete
當驗證完成時傳送。XMLSignatureValidator
 Inherited[廣播事件] 當 Flash Player 或 AIR 應用程式失去作業系統焦點並成為非作用中時傳送。EventDispatcher
  
    error
當驗證因錯誤而無法完成時傳送。XMLSignatureValidator
屬性詳細資訊
    

digestStatus

屬性
digestStatus:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

對簽章 SignedInfo 元素所計算之密碼編譯簽章的有效性狀態。

狀態為:

  • valid -- 如果簽章在密碼編譯上是有效的。
  • invalid -- 如果摘要在簽署之後已經變更。
  • unknown -- 如果尚未呼叫 verify() 方法。

注意:如果 digestStatus 為 invalid,便不會檢查 identityStatusreferencesStatus,且兩者的狀態將報告為 unknown



實作
    public function get digestStatus():String

擲回值
IllegalOperationError — 如果在驗證簽章時存取。
    

identityStatus

屬性 
identityStatus:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

簽署憑證的有效性狀態。

可能的狀態包括:

  • valid -- 憑證尚未過期、通過撤銷檢查而且鏈結到受信任的根憑證。
  • unknown -- 憑證尚未過期且通過撤銷檢查,但未鏈結到受信任的根憑證。當狀態未經過確認,而可能是因為尚未呼叫 verify() 方法或是因為 SignedInfo 元素的密碼編譯簽章 (digestStatus) 無效時,也會報告 unknown 狀態。
  • invalid -- 憑證已過期或未通過撤銷檢查。

使用 addCertificate() 方法所加入的憑證,以及 revocationCheckSettinguseSystemTrustStore 屬性的設定可以變更憑證的有效性狀態。

注意:如果 identityStatus 為 invalid,便不會檢查 referencesStatus,且其狀態將報告為 unknown。此外,如果 identityStatus 為 unknown,則只有在 referencesValidationSettingvalidOrUnknownIdentity 時才會檢查參考。



實作
    public function get identityStatus():String

擲回值
IllegalOperationError — 如果在驗證簽章時存取。

相關 API 元素


範例  ( 如何使用本範例 )
下列範例傳回對簽署憑證進行驗證後的結果 (假設已驗證過簽章):
 import flash.security.XMLSignatureValidator;
 
 
 var verifier:XMLSignatureValidator = new XMLSignatureValidator();
 //validate a signature...
  
 var identityResult:String = verifier.identityStatus;
    

isSupported

屬性 
isSupported:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: AIR 2

如果目前的平台支援 XMLSignatureValidator 類別,則 isSupported 屬性會設為 true,否則會設為 false



實作
    public static function get isSupported():Boolean
    

referencesStatus

屬性 
referencesStatus:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

在簽章 SignedInfo 元素中,參考中資料的有效性狀態。

可能的狀態包括:

  • valid -- 如果所有參考都是有效的。
  • invalid -- 如果有任何參考無效。
  • unknown -- 如果沒有驗證。仍未驗證參考可能是因下列情況所致:
    • 尚未呼叫 verify() 方法。
    • SignedInfo 元素的密碼編譯簽章 (digestStatus) 無效。
    • 簽署憑證 (identityStatus) 無效。
    • referencesValidationSettingvalidIdentity (預設值) 且簽署憑證的 identityStatus 為 unknown。
    • referencesValidationSettingnever

重要:不會驗證任何外部資源,除非是簽章文件內的 SignedInfo 元素中直接參考的項目。驗證對象亦不包括次級參考所參考的外部資源。例如,假設 XML 簽章簽署了資訊清單元素,則只會驗證資訊清單元素本身的完整性,而未檢查資訊清單中所列的檔案。



實作
    public function get referencesStatus():String

擲回值
IllegalOperationError — 如果在驗證簽章時存取。

相關 API 元素


範例  ( 如何使用本範例 )
下列範例傳回對簽章中的參考進行驗證後的結果 (假設已驗證過簽章):
 import flash.security.XMLSignatureValidator;
 
 var verifier:XMLSignatureValidator = new XMLSignatureValidator();
 //validate a signature...
  
 var dataResult:String = verifier.referencesStatus;
    

referencesValidationSetting

屬性 
referencesValidationSetting:String

語言版本: ActionScript 3.0
執行階段版本: AIR 1.5

指定檢查參考的條件。

使用 ReferencesValidationSetting 類別中定義的常數來設定這個屬性。設定包括:

  • ReferencesValidationSetting.VALID_IDENTITY -- 僅於簽署憑證有效且鏈結到受信任的根憑證時檢查參考。這是預設設定。
  • ReferencesValidationSetting.VALID_OR_UNKNOWN_IDENTITY -- 即使簽署憑證未鏈結到受信任的根憑證,只要有效便檢查參考。
  • ReferencesValidationSetting.NEVER -- 絕不檢查參考。

如果是由商業憑證所簽署的簽章,或您透過 addCertificate() 方法提供自己的憑證成為信任錨點,請使用預設的 validIdentity 設定。這項設定讓您可在簽署的文件既已遭拒的情況下不用檢查參考的有效性,以免徒增工作負荷。

如果是由自我簽署的憑證所簽署的簽章,請使用 validOrUnknownIdentity 設定。這項設定讓您得以驗證簽署的資料未曾遭到竄改,不過卻無法證實簽署者的身分。

如果驗證參考的有效性對您的應用程式整體而言不重要,請使用 never 設定以免徒增驗證上的工作負荷。



實作
    public function get referencesValidationSetting():String
    public function set referencesValidationSetting(value:String):void

擲回值
IllegalOperationError — 如果在驗證簽章時設定。
 
ArgumentError — 如果 setting 參數包含 ReferencesValidationSetting 類別中未定義的值。

相關 API 元素


範例  ( 如何使用本範例 )
下列範例將 XMLSignatureValidator 物件設定為僅於簽署憑證鏈結到信任錨點時檢查參考:
 import flash.security.ReferencesValidationSetting;
 
 var verifier:XMLSignatureValidator = new XMLSignatureValidator(); 
 verifier.referencesValidationSetting = ReferencesValidationSetting.VALID_OR_UNKNOWN_IDENTITY;
    

revocationCheckSetting

屬性 
revocationCheckSetting:String

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

指定如何檢查憑證撤銷。

使用 RevocationSettings 類別中定義的常數來設定這個屬性。設定包括:

  • RevocationCheckSettings.NEVER -- 不檢查憑證是否被撤銷。
  • RevocationCheckSettings.BEST_EFFORT -- 檢查憑證是否被撤銷 (如果有撤銷資訊而且可以取得撤銷狀態)。如果無法確認撤銷狀態,則不會拒絕憑證。
  • RevocationCheckSettings.REQUIRED_IF_AVAILABLE -- 如果憑證包含撤銷資訊,則必須正面判斷撤銷狀態才能驗證憑證。
  • RevocationCheckSettings.ALWAYS_REQUIRED -- 一定會檢查憑證是否撤銷。拒絕不含撤銷資訊的憑證。



實作
    public function get revocationCheckSetting():String
    public function set revocationCheckSetting(value:String):void

擲回值
IllegalOperationError — 如果在驗證簽章時設定。

相關 API 元素

    

signerCN

屬性 
signerCN:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

簽署憑證的「一般名稱」欄位。



實作
    public function get signerCN():String

範例  ( 如何使用本範例 )
下列範例會讀取簽署憑證的一般名稱 (假設已驗證過簽章):
 
 var verifier:XMLSignatureValidator = new XMLSignatureValidator();
 //validate a signature...
  
 var commonName:String = verifier.signerCN;
    

signerDN

屬性 
signerDN:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

簽署憑證的「辨別名稱」欄位。



實作
    public function get signerDN():String

範例  ( 如何使用本範例 )
下列範例會讀取簽署憑證的辨別名稱 (假設已驗證過簽章):
 
 var verifier:XMLSignatureValidator = new XMLSignatureValidator();
 //validate a signature...
  
 var distinguishedName:String = verifier.signerDN;
    

signerExtendedKeyUsages

屬性 
signerExtendedKeyUsages:Array  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

陣列,包含簽署憑證中列出的「擴充金鑰使用方法 OID」。

每個擴充金鑰使用方式都會以數值 OID 的格式來報告。



實作
    public function get signerExtendedKeyUsages():Array

擲回值
IllegalOperationError — 如果在驗證簽章時存取。

範例  ( 如何使用本範例 )
下列範例會讀取簽署憑證的擴充金鑰 OID (假設已驗證過簽章):
 import flash.security.XMLSignatureValidator;
 
 var verifier:XMLSignatureValidator = new XMLSignatureValidator();
 //validate a signature...
  
 var extendedKeyOIDs:Array = verifier.signerExtendedKeyUsages;
    

signerTrustSettings

屬性 
signerTrustSettings:Array  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

陣列,包含簽署憑證的信任設定。

信任設定衍生自系統和憑證中內嵌的金鑰使用方式 OID。代表已辨識之信任設定的字串常數是在 SignerTrustSettings 類別中定義。

unknowninvalid 憑證的 signerTrustSettings 陣列是空白的。

修改陣列並不會變更憑證信任設定。



實作
    public function get signerTrustSettings():Array

擲回值
IllegalOperationError — 如果在驗證簽章時存取。

相關 API 元素


範例  ( 如何使用本範例 )
下列範例會讀取簽署憑證的信任設定 (假設已驗證過簽章):
 import flash.security.XMLSignatureValidator;
 
 var verifier:XMLSignatureValidator = new XMLSignatureValidator();
 //validate a signature...
  
 var certificateTrustedFor:Array = verifier.signerTrustSettings;
    

uriDereferencer

屬性 
uriDereferencer:IURIDereferencer

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

IURIDereferencer 實作。

在嘗試驗證簽章之前,您必須先提供 IURIDereferencer 實作。



實作
    public function get uriDereferencer():IURIDereferencer
    public function set uriDereferencer(value:IURIDereferencer):void

擲回值
IllegalOperationError — 如果在驗證簽章時設定。

相關 API 元素


範例  ( 如何使用本範例 )
下列範例會建立實作 IURIDereferencer 介面的 SignedMessageDereferencer 實體,並將其設定為供簽章驗證使用的提領者 (Dereferencer):
 import com.example.SignedMessageDereferencer; //A custom class implementing IURIDereferencer
 
 var verifier:XMLSignatureValidator = new XMLSignatureValidator(); 
 verifier.uriDereferencer = new SignedMessageDereferencer();
    

useSystemTrustStore

屬性 
useSystemTrustStore:Boolean

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

指定系統信任儲存區中的憑證可用來建立鏈結。

如果為 true,則會使用系統信任儲存區中的信任錨點做為受信任的根憑證。根據預設,不會使用系統信任儲存區。



實作
    public function get useSystemTrustStore():Boolean
    public function set useSystemTrustStore(value:Boolean):void

擲回值
IllegalOperationError — 如果在驗證簽章時設定。

範例  ( 如何使用本範例 )
下列範例會建立 XMLSignatureValidator 實體,並將其設定為驗證 XML 簽章時使用系統信任憑證貯存庫:
 var verifier:XMLSignatureValidator = new XMLSignatureValidator(); 
 verifier.useSystemTrustStore = true;
    

validityStatus

屬性 
validityStatus:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

已驗證之 XML 簽章的有效性狀態。

XML 簽章的驗證過程包括驗證 SignedInfo 元素的密碼編譯簽章、簽署憑證,以及 SignedInfo 元素中參考所提出的資料。由 digestStatusidentityStatusreferencesStatus 屬性分別報告這些元素的有效性。

XML 簽章有效性可以是 valid、invalid 或 unknown。整體狀態取決於簽章檔案個別組件的驗證狀態:

  • digestStatus -- 對 SignedInfo 元素所計算之密碼編譯簽章的有效性。
  • identityStatus -- 簽署憑證的有效性。
  • referencesStatus -- 簽章 SignedInfo 元素中參考之摘要的有效性。

validityStatus 屬性報告的簽章有效性可以是:

  • valid -- 如果 referencesStatusdigestStatusidentityStatus 都是 valid
  • invalid -- 如果有任何個別的狀態為 invalid
  • unknown -- 如果有任何個別的狀態為 unknown



實作
    public function get validityStatus():String

擲回值
IllegalOperationError — 如果在驗證簽章時存取。

相關 API 元素


範例  ( 如何使用本範例 )
下列範例傳回對 XML 簽章進行驗證後的結果:
 import flash.security.XMLSignatureValidator;
 
 var verifier:XMLSignatureValidator = new XMLSignatureValidator();
 //validate the signature...
  
 var validationResult:String = verifier.validityStatus;
建構函式詳細資料
    

XMLSignatureValidator

()建構函式
public function XMLSignatureValidator()

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

建立 XMLSignatureValidator 物件。

您必須先設定 uriDereferencer 屬性,再呼叫新物件的 verify() 方法。

相關 API 元素


範例  ( 如何使用本範例 )

下列範例會建立並設定新的 XMLSignatureValidator 物件:
 
import com.example.EnvelopedDereferencer; //Your custom IURIDereferencer implementation

//Create the object
var verifier:XMLSignatureValidator = new XMLSignatureValidator();

//Provide the IURIDerferencer
verifier.uriDereferencer = new EnvelopedDereferencer(xmlDoc);

//Set validation options
verifier.referencesValidationSetting = ReferencesValidationSetting.VALID_OR_UNKNOWN_IDENTITY;
verifier.revocationCheckSetting = RevocationCheckSettings.NEVER;
verifier.useSystemTrustStore = true;

//Add listeners to handle results
verifier.addEventListener(Event.COMPLETE, verificationComplete);
verifier.addEventListener(ErrorEvent.ERROR, verificationError);
方法詳細資訊

    addCertificate

()方法
public function addCertificate(cert:ByteArray, trusted:Boolean):*

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

加入 x509 憑證以建立鏈結。

加入的憑證必須是 DER 編碼的 x509 憑證。

如果 trusted 參數為 true,則憑證會被視為信任錨點。

注意:XML 簽章可以包含用來建立簽署者憑證鏈的憑證。XMLSignatureValidator 類別會使用此憑證建立鏈結,但不會做為受信任的根憑證 (根據預設)。

參數

cert:ByteArray — 包含 DER 編碼 x509 數位憑證的 ByteArray 物件。
 
trusted:Boolean — 設定為 true,將這個憑證指定為信任錨點。

傳回值
*

擲回值
IllegalOperationError — 如果在驗證簽章時呼叫。

範例  ( 如何使用本範例 )

下列範例會從檔案系統載入憑證,並將該憑證加入成為信任錨點。
 import flash.utils.ByteArray;
 
 var verifier:XMLSignatureValidator = new XMLSignatureValidator();
 var certificate:ByteArray = new ByteArray();
 
 var certFile:File = new File("certificate.cer");
 var certFileStream:FileStream = new FileStream();
 certFileStream.open(certFile, FileMode.READ);
 certFileStream.readBytes(certificate, 0, certFileStream.bytesAvailable);

 verifier.addCertificate(certificate, true);

    verify

()方法 
public function verify(signature:XML):void

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

驗證指定的簽章。

非同步的驗證。如果驗證成功完成,XMLSignatureValidator 物件會傳送 complete 事件,如果驗證因錯誤而無法完成,則會傳送 error 事件。

驗證程序無法取消。當驗證程序正在進行時,後續呼叫 verify() 方法會失敗。在目前的驗證檢查完成之後,您可以再次呼叫 verify() 方法。

注意:由於 XMLSignatureValidator 只實作 W3C 建議事項「XML 簽章語法及處理」(XML-Signature Syntax and Processing) 的子集,此類別僅能驗證若干有效的 XML 簽章。

參數

signature:XML — 要驗證的 XML 簽章。


事件
complete:Event — 當驗證成功完成時傳送。
 
error:ErrorEvent — 當參考的驗證遇到錯誤時傳送。

擲回值
IllegalOperationError — 如果在驗證簽章時呼叫。
 
Error — 如果遇到其他錯誤 (如 XML 格式不正確或簽章檔案中的元素不受支援)。

範例  ( 如何使用本範例 )

下列範例會讀取包含 XML 簽章的檔案,然後呼叫 verify() 方法加以驗證 (此範例假設您已實作適用於該簽章的 IURIDereferencer)。
import flash.filesystem.File;
import flash.filesystem.FileStream;
import com.example.SignedMessageDereferencer; //Your IURIDereferencer implementation
 
const xmlSignatureNS:Namespace = new Namespace( "http://www.w3.org/2000/09/xmldsig#" );

var verifier:XMLSignatureValidator = new XMLSignatureValidator();
verifier.uriDereferencer = new SignedMessageDereferencer();

var signatureFile:File = new File( "path/to/XMLSignatureDocument.xml" );
var sigFileStream:FileStream = new FileStream();
sigFileStream.open( signatureFile, FileMode.READ );

var xmlDoc:XML = XML( sigFileStream.readUTFBytes(sigFileStream.bytesAvailable) );
var xmlSig:XML = XML( xmlDoc..xmlSignatureNS::Signature );

verifier.verify( xmlSig );
事件詳細資訊
    

complete

事件
事件物件類型: flash.events.Event
屬性 Event.type = flash.events.Event.COMPLETE

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

當驗證完成時傳送。

complete 事件不表示簽章有效。請檢查 XMLSignatureValidator 物件的 validityStatus 屬性以判斷簽章驗證的結果。

Event.COMPLETE 常數會定義 complete 事件物件的 type 屬性值。

這個事件具有下列屬性:

屬性
bubblesfalse
cancelablefalse;沒有要取消的預設行為指令。
currentTarget正主動使用事件偵聽程式處理 Event 物件的物件。
target已完成載入的網路物件。

範例  ( 如何使用本範例 )

下列範例會偵聽 XMLSignatureValidator 物件所傳送的完成事件並追蹤驗證結果:
private function verificationComplete(event:Event):void{
    var validator:XMLSignatureValidator = event.target as XMLSignatureValidator;
    trace("Digest status: " + validator.digestStatus);
    trace("Identity status: " + validator.identityStatus);
    trace("Reference status: " + validator.referencesStatus);
    trace("Signature status: " + validator.validityStatus);    
}

相關 API 元素

    

error

事件  
事件物件類型: flash.events.ErrorEvent
屬性 ErrorEvent.type = flash.events.ErrorEvent.ERROR

語言版本: ActionScript 3.0
執行階段版本: AIR 1.0

當驗證因錯誤而無法完成時傳送。

定義 error 事件物件的 type 屬性值。

這個事件具有下列屬性:

屬性
bubblesfalse
cancelablefalse;沒有要取消的預設行為指令。
currentTarget正主動使用事件偵聽程式處理 Event 物件的物件。
target遇到網路作業失敗的物件。
text要顯示為錯誤訊息的文字。

範例  ( 如何使用本範例 )

下列範例會偵聽 XMLSignatureValidator 物件所傳送的錯誤事件並追蹤錯誤訊息:
private function verificationError(event:ErrorEvent):void{
    trace("Verification error: " + event.text);                
}
XMLSignatureValidatorExample.as

下列範例將載入並驗證包含 XML 簽章的檔案。若要使用此範例,您必須實作適用於受驗證簽章的 IURIDereferencer (取代此範例所使用的 SignedMessageDereferencer 類別)。請呼叫 SignatureValidatorExample.validateSignature( signatureFile ),並且傳遞參考 XML 簽章文件而即將驗證的檔案以執行此範例。
import flash.events.Event;
import flash.filesystem.File;
import flash.filesystem.FileStream;
import flash.security.ReferencesValidationSetting;
import flash.security.XMLSignatureValidator; 

import com.example.SignedMessageDereferencer; //A custom class implementing IURIDereferencer

public class SignatureValidatorExample{ 
    private var xmlSig:XML;
    private const signatureNS:Namespace = new Namespace( "http://www.w3.org/2000/09/xmldsig#" );
    
    public static function validateSignature( signatureFile:File ):void{
        try{
            //Set up the XMLSignatureValidator
            var verifier:XMLSignatureValidator = new XMLSignatureValidator();
            verifier.addEventListener( Event.COMPLETE, verificationComplete );
            verifier.uriDereferencer = new SignedMessageDereferencer();
            verifier.referencesValidationSetting = ReferencesValidationSetting.VALID_OR_UNKNOWN_IDENTITY;
    
            //Load the signed document
            var sigFileStream:FileStream = new FileStream();
            sigFileStream.open( signatureFile, FileMode.READ );
            var xmlDoc:XML = XML( sigFileStream.readUTFBytes(sigFileStream.bytesAvailable) );
            
            //Get the last Signature element in the document
            if( xmlDoc.name().localName != "Signature" ){
                var signatureList:XMLList = xmlDoc..signatureNS::Signature;
                xmlSig = XML( signatureList[ signatureList.length()-1 ] );
            } else{
                xmlSig = xmlDoc;
            }
    
            //Validate the signature
            verifier.verify( xmlSig );
            
        }catch (e:Error){
            statusDisplay.text = "Verification error.\n" + e;
        }
    }
    
    private static function verificationComplete(event:Event):void{
        trace( "Signature Validity: " + verifier.validityStatus );
        trace( "Digest validity: " + verifier.digestStatus );
        trace( "Certificate validity: " + verifier.identityStatus );
        trace( "Data validity: " + verifier.referencesStatus );
    }
}




[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。