8296612: CertAttrSet is useless

Reviewed-by: mullan
This commit is contained in:
Weijun Wang 2022-11-10 22:23:58 +00:00
parent 6b456f7a9b
commit 27527b4975
52 changed files with 80 additions and 203 deletions

View file

@ -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;
}

View file

@ -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;
}