what-the-bank/sources/org/bouncycastle/util/io/pem/PemObject.java

41 lines
1006 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.util.io.pem;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/* loaded from: classes6.dex */
public class PemObject implements PemObjectGenerator {
private static final List EMPTY_LIST = Collections.unmodifiableList(new ArrayList());
private byte[] content;
private List headers;
private String type;
@Override // org.bouncycastle.util.io.pem.PemObjectGenerator
public PemObject generate() throws PemGenerationException {
return this;
}
public String getType() {
return this.type;
}
public List getHeaders() {
return this.headers;
}
public byte[] getContent() {
return this.content;
}
public PemObject(String str, byte[] bArr) {
this(str, EMPTY_LIST, bArr);
}
public PemObject(String str, List list, byte[] bArr) {
this.type = str;
this.headers = Collections.unmodifiableList(list);
this.content = bArr;
}
}