public interface Extension
扩展提供了一种将附加属性与用户或公共密钥相关联的方法,以及管理证书层次结构的方法。扩展格式也允许社区定义私有扩展,以携带这些社区的唯一信息。
每个扩展包含一个对象标识符,临界设置指示是否是关键或非关键的扩展,并和一个ASN.1 DER编码值1。1定义的ASN:
扩展::=序列extnid对象标识符,临界布尔默认值,extnvalue八进制字符串-包含值的一个-已注册使用的类型——extnid对象标识符的值}
此接口的设计是为了提供访问一个单一的延伸,与X509Extension
哪个更适合访问一组扩展。
Modifier and Type | Method and Description |
---|---|
void |
encode(OutputStream out)
生成扩展的“的”编码,并将其写入输出流。
|
String |
getId()
获取扩展的对象标识符。
|
byte[] |
getValue()
获取扩展的“值”。
|
boolean |
isCritical()
获取扩展的临界设置。
|
String getId()
boolean isCritical()
byte[] getValue()
null
如果没有推广价值是存在的。
void encode(OutputStream out) throws IOException
out
-输出流
IOException
-编码或输出错误。
null
out
NullPointerException
。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.