mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8296612: CertAttrSet is useless
Reviewed-by: mullan
This commit is contained in:
parent
6b456f7a9b
commit
27527b4975
52 changed files with 80 additions and 203 deletions
|
@ -40,7 +40,7 @@ public interface DerEncoder {
|
|||
*
|
||||
* @param out the stream on which the DER encoding is written.
|
||||
*/
|
||||
void derEncode(DerOutputStream out)
|
||||
void encode(DerOutputStream out)
|
||||
throws IOException;
|
||||
|
||||
}
|
||||
|
|
|
@ -404,7 +404,7 @@ extends ByteArrayOutputStream implements DerEncoder {
|
|||
|
||||
for (int i = 0; i < set.length; i++) {
|
||||
streams[i] = new DerOutputStream();
|
||||
set[i].derEncode(streams[i]);
|
||||
set[i].encode(streams[i]);
|
||||
}
|
||||
|
||||
// order the element encodings
|
||||
|
@ -582,7 +582,8 @@ extends ByteArrayOutputStream implements DerEncoder {
|
|||
*
|
||||
* @exception IOException on output error.
|
||||
*/
|
||||
public void derEncode(DerOutputStream out) throws IOException {
|
||||
@Override
|
||||
public void encode(DerOutputStream out) throws IOException {
|
||||
out.write(toByteArray());
|
||||
}
|
||||
|
||||
|
@ -592,7 +593,7 @@ extends ByteArrayOutputStream implements DerEncoder {
|
|||
* @throws IOException on output error
|
||||
*/
|
||||
public DerOutputStream write(DerEncoder encoder) throws IOException {
|
||||
encoder.derEncode(this);
|
||||
encoder.encode(this);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue