Top Inners Fields Constructors Methods
org.bouncycastle.jcajce.provider.asymmetric.x509

pack-priv Class PEMUtil

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, org.bouncycastle.asn1.ASN1Sequence, org.bouncycastle.util.encoders.Base64

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
PEMUtil.Boundaries

Boundary class.

Field Summary

Modifier and TypeField and Description
private final PEMUtil.Boundaries[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private PEMUtil.Boundaries

Returns:

the Boundaries object corresponding to the given boundary string or null if the passed in string is not a valid boundary.
getBoundaries
(String
the boundary string
line
)

Returns a Boundaries object representing the passed in boundary string.

private String
pack-priv ASN1Sequence
readPEMObject(InputStream in, boolean isFirst)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_supportedBoundariesback to summary
private final PEMUtil.Boundaries[] _supportedBoundaries

Constructor Detail

PEMUtilback to summary
pack-priv PEMUtil(String type)

Method Detail

getBoundariesback to summary
private PEMUtil.Boundaries getBoundaries(String line)

Returns a Boundaries object representing the passed in boundary string.

Parameters
line:String

the boundary string

Returns:PEMUtil.Boundaries

the Boundaries object corresponding to the given boundary string or null if the passed in string is not a valid boundary.

readLineback to summary
private String readLine(InputStream in) throws IOException
readPEMObjectback to summary
pack-priv ASN1Sequence readPEMObject(InputStream in, boolean isFirst) throws IOException
org.bouncycastle.jcajce.provider.asymmetric.x509 back to summary

private Class PEMUtil.Boundaries

extends Object
Class Inheritance
  • java.lang.Object
  • org.bouncycastle.jcajce.provider.asymmetric.x509.PEMUtil.Boundaries

Boundary class. Keeps track of the required header/footer pair for the current PEM object.

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_headerback to summary
private final String _header

Constructor Detail

Boundariesback to summary
private Boundaries(String type)

Method Detail

isTheExpectedFooterback to summary
public boolean isTheExpectedFooter(String line)
isTheExpectedHeaderback to summary
public boolean isTheExpectedHeader(String line)