类的用途
javax.xml.crypto.KeySelector.Purpose
使用 KeySelector.Purpose 的包
-
KeySelector.Purpose 在 javax.xml.crypto 中的用法
javax.xml.crypto 中的字段声明为 KeySelector.Purpose修饰符和类型Field描述static final KeySelector.PurposeKeySelector.Purpose.DECRYPT用于解密的密钥。static final KeySelector.PurposeKeySelector.Purpose.ENCRYPT用于加密的密钥。static final KeySelector.PurposeKeySelector.Purpose.SIGN用于签名的密钥。static final KeySelector.PurposeKeySelector.Purpose.VERIFY用于验证的密钥。javax.xml.crypto 中的方法,参数类型为 KeySelector.Purpose修饰符和类型方法描述abstract KeySelectorResultKeySelector.select(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod method, XMLCryptoContext context) 尝试找到满足指定约束的键。