Top Description Fields Constructors Methods
org.bouncycastle.bcpg.sig

public Class RegularExpression

extends SignatureSubpacket
Class Inheritance
Imports
org.bouncycastle.bcpg.SignatureSubpacket, .SignatureSubpacketTags, org.bouncycastle.util.Arrays, .Strings

Regexp Packet - RFC 4880 5.2.3.14.

Note

the RFC says the byte encoding is to be null terminated.

Field Summary

Inherited from org.bouncycastle.bcpg.SignatureSubpacket:
data

Constructor Summary

AccessConstructor and Description
public
RegularExpression(boolean critical, boolean isLongLength, byte[] data)

public
RegularExpression(boolean critical, String regex)

Method Summary

Modifier and TypeMethod and Description
public byte[]
public String
private static byte[]
Inherited from org.bouncycastle.bcpg.SignatureSubpacket:
encodeequalsgetDatagetTypehashCodeisCriticalisLongLength

Constructor Detail

RegularExpressionback to summary
public RegularExpression(boolean critical, boolean isLongLength, byte[] data)
RegularExpressionback to summary
public RegularExpression(boolean critical, String regex)

Method Detail

getRawRegexback to summary
public byte[] getRawRegex()
getRegexback to summary
public String getRegex()
toNullTerminatedUTF8ByteArrayback to summary
private static byte[] toNullTerminatedUTF8ByteArray(String string)