- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
如我所见document ,JCE 有多个提供者。如何找出默认可用的提供程序?
最佳答案
调用Security.getProviders()
,例如
for (Provider provider : Security.getProviders())
System.out.printf("%-11s %s%n", provider.getName(), provider.getInfo());
我在 Windows 上的 Oracle Java 9.0.1 上的输出:
SUN SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; PKCS12, JKS & DKS keystores; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores, JavaPolicy Policy; JavaLoginConfig Configuration)
SunRsaSign Sun RSA signature provider
SunEC Sun Elliptic Curve provider (EC, ECDSA, ECDH)
SunJSSE Sun JSSE provider(PKCS12, SunX509/PKIX key/trust factories, SSLv3/TLSv1/TLSv1.1/TLSv1.2/DTLSv1.0/DTLSv1.2)
SunJCE SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC)
SunJGSS Sun (Kerberos v5, SPNEGO)
SunSASL Sun SASL provider(implements client mechanisms for: DIGEST-MD5, EXTERNAL, PLAIN, CRAM-MD5, NTLM; server mechanisms for: DIGEST-MD5, CRAM-MD5, NTLM)
XMLDSig XMLDSig (DOM XMLSignatureFactory; DOM KeyInfoFactory; C14N 1.0, C14N 1.1, Exclusive C14N, Base64, Enveloped, XPath, XPath2, XSLT TransformServices)
SunPCSC Sun PC/SC provider
JdkLDAP JdkLDAP Provider (implements LDAP CertStore)
JdkSASL JDK SASL provider(implements client and server mechanisms for GSSAPI)
SunMSCAPI Sun's Microsoft Crypto API provider
SunPKCS11 Unconfigured and unusable PKCS11 provider
如果您想查看每个提供商提供的服务,试试这个:
for (Provider provider : Security.getProviders()) {
System.out.printf("%-11s %s%n", provider.getName(), provider.getInfo());
for (Service service : provider.getServices())
System.out.printf(" %s: %s%n", service.getType(), service.getAlgorithm());
}
输出
SUN SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; PKCS12, JKS & DKS keystores; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores, JavaPolicy Policy; JavaLoginConfig Configuration)
SecureRandom: DRBG
SecureRandom: SHA1PRNG
Signature: SHA1withDSA
Signature: NONEwithDSA
Signature: SHA224withDSA
Signature: SHA256withDSA
Signature: SHA1withDSAinP1363Format
Signature: NONEwithDSAinP1363Format
Signature: SHA224withDSAinP1363Format
Signature: SHA256withDSAinP1363Format
KeyPairGenerator: DSA
MessageDigest: MD2
MessageDigest: MD5
MessageDigest: SHA
MessageDigest: SHA-224
MessageDigest: SHA-256
MessageDigest: SHA-384
MessageDigest: SHA-512
MessageDigest: SHA-512/224
MessageDigest: SHA-512/256
MessageDigest: SHA3-224
MessageDigest: SHA3-256
MessageDigest: SHA3-384
MessageDigest: SHA3-512
AlgorithmParameterGenerator: DSA
AlgorithmParameters: DSA
KeyFactory: DSA
CertificateFactory: X.509
KeyStore: PKCS12
KeyStore: JKS
KeyStore: CaseExactJKS
KeyStore: DKS
Policy: JavaPolicy
Configuration: JavaLoginConfig
CertPathBuilder: PKIX
CertPathValidator: PKIX
CertStore: Collection
CertStore: com.sun.security.IndexedCollection
SunRsaSign Sun RSA signature provider
KeyFactory: RSA
KeyPairGenerator: RSA
Signature: MD2withRSA
Signature: MD5withRSA
Signature: SHA1withRSA
Signature: SHA224withRSA
Signature: SHA256withRSA
Signature: SHA384withRSA
Signature: SHA512withRSA
SunEC Sun Elliptic Curve provider (EC, ECDSA, ECDH)
KeyFactory: EC
AlgorithmParameters: EC
Signature: NONEwithECDSA
Signature: SHA1withECDSA
Signature: SHA224withECDSA
Signature: SHA256withECDSA
Signature: SHA384withECDSA
Signature: SHA512withECDSA
Signature: NONEwithECDSAinP1363Format
Signature: SHA1withECDSAinP1363Format
Signature: SHA224withECDSAinP1363Format
Signature: SHA256withECDSAinP1363Format
Signature: SHA384withECDSAinP1363Format
Signature: SHA512withECDSAinP1363Format
KeyPairGenerator: EC
KeyAgreement: ECDH
SunJSSE Sun JSSE provider(PKCS12, SunX509/PKIX key/trust factories, SSLv3/TLSv1/TLSv1.1/TLSv1.2/DTLSv1.0/DTLSv1.2)
KeyFactory: RSA
KeyPairGenerator: RSA
Signature: MD2withRSA
Signature: MD5withRSA
Signature: SHA1withRSA
Signature: MD5andSHA1withRSA
KeyManagerFactory: SunX509
KeyManagerFactory: NewSunX509
TrustManagerFactory: SunX509
TrustManagerFactory: PKIX
SSLContext: TLSv1
SSLContext: TLSv1.1
SSLContext: TLSv1.2
SSLContext: TLS
SSLContext: DTLSv1.0
SSLContext: DTLSv1.2
SSLContext: DTLS
SSLContext: Default
KeyStore: PKCS12
SunJCE SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC)
Cipher: RSA
Cipher: DES
Cipher: DESede
Cipher: DESedeWrap
Cipher: PBEWithMD5AndDES
Cipher: PBEWithMD5AndTripleDES
Cipher: PBEWithSHA1AndDESede
Cipher: PBEWithSHA1AndRC2_40
Cipher: PBEWithSHA1AndRC2_128
Cipher: PBEWithSHA1AndRC4_40
Cipher: PBEWithSHA1AndRC4_128
Cipher: PBEWithHmacSHA1AndAES_128
Cipher: PBEWithHmacSHA224AndAES_128
Cipher: PBEWithHmacSHA256AndAES_128
Cipher: PBEWithHmacSHA384AndAES_128
Cipher: PBEWithHmacSHA512AndAES_128
Cipher: PBEWithHmacSHA1AndAES_256
Cipher: PBEWithHmacSHA224AndAES_256
Cipher: PBEWithHmacSHA256AndAES_256
Cipher: PBEWithHmacSHA384AndAES_256
Cipher: PBEWithHmacSHA512AndAES_256
Cipher: Blowfish
Cipher: AES
Cipher: AES_128/ECB/NoPadding
Cipher: AES_128/CBC/NoPadding
Cipher: AES_128/OFB/NoPadding
Cipher: AES_128/CFB/NoPadding
Cipher: AES_128/GCM/NoPadding
Cipher: AES_192/ECB/NoPadding
Cipher: AES_192/CBC/NoPadding
Cipher: AES_192/OFB/NoPadding
Cipher: AES_192/CFB/NoPadding
Cipher: AES_192/GCM/NoPadding
Cipher: AES_256/ECB/NoPadding
Cipher: AES_256/CBC/NoPadding
Cipher: AES_256/OFB/NoPadding
Cipher: AES_256/CFB/NoPadding
Cipher: AES_256/GCM/NoPadding
Cipher: AESWrap
Cipher: AESWrap_128
Cipher: AESWrap_192
Cipher: AESWrap_256
Cipher: RC2
Cipher: ARCFOUR
KeyGenerator: DES
KeyGenerator: DESede
KeyGenerator: Blowfish
KeyGenerator: AES
KeyGenerator: RC2
KeyGenerator: ARCFOUR
KeyGenerator: HmacMD5
KeyGenerator: HmacSHA1
KeyGenerator: HmacSHA224
KeyGenerator: HmacSHA256
KeyGenerator: HmacSHA384
KeyGenerator: HmacSHA512
KeyPairGenerator: DiffieHellman
AlgorithmParameterGenerator: DiffieHellman
KeyAgreement: DiffieHellman
AlgorithmParameters: DiffieHellman
AlgorithmParameters: DES
AlgorithmParameters: DESede
AlgorithmParameters: PBE
AlgorithmParameters: PBEWithMD5AndDES
AlgorithmParameters: PBEWithMD5AndTripleDES
AlgorithmParameters: PBEWithSHA1AndDESede
AlgorithmParameters: PBEWithSHA1AndRC2_40
AlgorithmParameters: PBEWithSHA1AndRC2_128
AlgorithmParameters: PBEWithSHA1AndRC4_40
AlgorithmParameters: PBEWithSHA1AndRC4_128
AlgorithmParameters: PBES2
AlgorithmParameters: PBEWithHmacSHA1AndAES_128
AlgorithmParameters: PBEWithHmacSHA224AndAES_128
AlgorithmParameters: PBEWithHmacSHA256AndAES_128
AlgorithmParameters: PBEWithHmacSHA384AndAES_128
AlgorithmParameters: PBEWithHmacSHA512AndAES_128
AlgorithmParameters: PBEWithHmacSHA1AndAES_256
AlgorithmParameters: PBEWithHmacSHA224AndAES_256
AlgorithmParameters: PBEWithHmacSHA256AndAES_256
AlgorithmParameters: PBEWithHmacSHA384AndAES_256
AlgorithmParameters: PBEWithHmacSHA512AndAES_256
AlgorithmParameters: Blowfish
AlgorithmParameters: AES
AlgorithmParameters: GCM
AlgorithmParameters: RC2
AlgorithmParameters: OAEP
KeyFactory: DiffieHellman
SecretKeyFactory: DES
SecretKeyFactory: DESede
SecretKeyFactory: PBEWithMD5AndDES
SecretKeyFactory: PBEWithMD5AndTripleDES
SecretKeyFactory: PBEWithSHA1AndDESede
SecretKeyFactory: PBEWithSHA1AndRC2_40
SecretKeyFactory: PBEWithSHA1AndRC2_128
SecretKeyFactory: PBEWithSHA1AndRC4_40
SecretKeyFactory: PBEWithSHA1AndRC4_128
SecretKeyFactory: PBEWithHmacSHA1AndAES_128
SecretKeyFactory: PBEWithHmacSHA224AndAES_128
SecretKeyFactory: PBEWithHmacSHA256AndAES_128
SecretKeyFactory: PBEWithHmacSHA384AndAES_128
SecretKeyFactory: PBEWithHmacSHA512AndAES_128
SecretKeyFactory: PBEWithHmacSHA1AndAES_256
SecretKeyFactory: PBEWithHmacSHA224AndAES_256
SecretKeyFactory: PBEWithHmacSHA256AndAES_256
SecretKeyFactory: PBEWithHmacSHA384AndAES_256
SecretKeyFactory: PBEWithHmacSHA512AndAES_256
SecretKeyFactory: PBKDF2WithHmacSHA1
SecretKeyFactory: PBKDF2WithHmacSHA224
SecretKeyFactory: PBKDF2WithHmacSHA256
SecretKeyFactory: PBKDF2WithHmacSHA384
SecretKeyFactory: PBKDF2WithHmacSHA512
Mac: HmacMD5
Mac: HmacSHA1
Mac: HmacSHA224
Mac: HmacSHA256
Mac: HmacSHA384
Mac: HmacSHA512
Mac: HmacSHA512/224
Mac: HmacSHA512/256
Mac: HmacPBESHA1
Mac: PBEWithHmacSHA1
Mac: PBEWithHmacSHA224
Mac: PBEWithHmacSHA256
Mac: PBEWithHmacSHA384
Mac: PBEWithHmacSHA512
Mac: SslMacMD5
Mac: SslMacSHA1
KeyStore: JCEKS
KeyGenerator: SunTlsPrf
KeyGenerator: SunTls12Prf
KeyGenerator: SunTlsMasterSecret
KeyGenerator: SunTlsKeyMaterial
KeyGenerator: SunTlsRsaPremasterSecret
SunJGSS Sun (Kerberos v5, SPNEGO)
GssApiMechanism: 1.2.840.113554.1.2.2
GssApiMechanism: 1.3.6.1.5.5.2
SunSASL Sun SASL provider(implements client mechanisms for: DIGEST-MD5, EXTERNAL, PLAIN, CRAM-MD5, NTLM; server mechanisms for: DIGEST-MD5, CRAM-MD5, NTLM)
SaslClientFactory: DIGEST-MD5
SaslClientFactory: NTLM
SaslClientFactory: EXTERNAL
SaslClientFactory: PLAIN
SaslClientFactory: CRAM-MD5
SaslServerFactory: CRAM-MD5
SaslServerFactory: DIGEST-MD5
SaslServerFactory: NTLM
XMLDSig XMLDSig (DOM XMLSignatureFactory; DOM KeyInfoFactory; C14N 1.0, C14N 1.1, Exclusive C14N, Base64, Enveloped, XPath, XPath2, XSLT TransformServices)
XMLSignatureFactory: DOM
KeyInfoFactory: DOM
TransformService: http://www.w3.org/TR/2001/REC-xml-c14n-20010315
TransformService: http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments
TransformService: http://www.w3.org/2006/12/xml-c14n11
TransformService: http://www.w3.org/2006/12/xml-c14n11#WithComments
TransformService: http://www.w3.org/2001/10/xml-exc-c14n#
TransformService: http://www.w3.org/2001/10/xml-exc-c14n#WithComments
TransformService: http://www.w3.org/2000/09/xmldsig#base64
TransformService: http://www.w3.org/2000/09/xmldsig#enveloped-signature
TransformService: http://www.w3.org/2002/06/xmldsig-filter2
TransformService: http://www.w3.org/TR/1999/REC-xpath-19991116
TransformService: http://www.w3.org/TR/1999/REC-xslt-19991116
SunPCSC Sun PC/SC provider
TerminalFactory: PC/SC
JdkLDAP JdkLDAP Provider (implements LDAP CertStore)
CertStore: LDAP
JdkSASL JDK SASL provider(implements client and server mechanisms for GSSAPI)
SaslClientFactory: GSSAPI
SaslServerFactory: GSSAPI
SunMSCAPI Sun's Microsoft Crypto API provider
SecureRandom: Windows-PRNG
KeyStore: Windows-MY
KeyStore: Windows-ROOT
Signature: NONEwithRSA
Signature: SHA1withRSA
Signature: SHA256withRSA
Signature: SHA384withRSA
Signature: SHA512withRSA
Signature: MD5withRSA
Signature: MD2withRSA
KeyPairGenerator: RSA
Cipher: RSA
Cipher: RSA/ECB/PKCS1Padding
SunPKCS11 Unconfigured and unusable PKCS11 provider
关于java - JCE - 如何找到活跃的加密服务提供者,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49411795/
尝试根据 :server-name 在请求中返回的内容加载特定模板: (ns rosay.views.common (:use noir.core) (:require [noir.reque
我想检查谁是活跃用户(过去 7 天都登录过)以及谁是非活跃用户(过去 7 天没有登录过)。我有 2 个表用户和机构。用户表结构如下: id | first_name | email | agency
我的 CSS 有问题。我试图将事件类设置为在垂直菜单上以粉红色突出显示,但事实并非如此。我如何在没有用户悬停在它上面的情况下保持它点亮。这是我的 HTML 和 CSS。 HTML 代码:
我有一个 Tile,当它处于 Activity 状态时,会运行一个计时器,在这五分钟内执行一项任务,然后在一定时间后返回到非 Activity 状态。 但是,我遇到的问题是服务被终止了。当所述计时器启
我已经知道如何在点击类(class)时激活它,但是当我将鼠标悬停在特定区域时如何激活类(class)? 这里是点击时获取事件类的代码: >Contact 是不是这样的: $('').hover(
我在使用 screen 时遇到问题。我知道 screen session 在主进程工作时工作,但我怎样才能让这个 session 保持事件状态?我需要这个,因为 session 关闭时有一些子进程被杀
我有一个 session 超时为 15 分钟的站点。在某些页面上,用户有时会花费超过 15 分钟的时间来填写回复。在这种情况下,使 session 保持事件状态的最佳解决方案是什么? 我已经在这些页面
我正在网页(在弹出窗口中)检查用户状态 - 他是活跃的还是空闲的。如果他空闲超过 30 分钟,窗口将自动关闭并重置数据库中的一些标志。 我设置了包含时间的 cookie(他打开弹出窗口的时间),并在每
由于某种原因,Jenkins 一直停止工作,我必须重新启动 jenkins 服务才能使其再次工作。每次发生这种情况时,服务都是“事件(退出)”,但日志中没有任何内容。我使用 Ubuntu 16.04。
我有一个幻灯片,需要单击它才能转到下一个图像/视频。但是,我想自动执行此操作,因此不需要任何用户事件。 页面如下所示: Slide 1 Slide 2 Slide
我正在使用 C# 应用程序来验证和检查位于 Window 2008 64 位服务器上的 Active Directory 用户。 使用以下代码提供用户名和密码时,我能够成功验证用户:我的域名值为 ro
这个问题在这里已经有了答案: Is there a CSS parent selector? (33 个答案) 关闭 9 年前。 有没有办法根据类中子元素的类来选择父元素?与我相关的示例是关于 ht
我正在尝试连接到 API,对用户进行身份验证,然后查看用户详细信息。这是通过首先访问登录端点来完成的 http://api.example.com/login// 登录然后查看用户详细信息: http
我正在尝试连接到 API,对用户进行身份验证,然后查看用户详细信息。这是通过首先访问登录端点来完成的 http://api.example.com/login// 登录然后查看用户详细信息: http
我是一名优秀的程序员,十分优秀!