public static final enum

RedactionPreset.Type

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.pspdfkit.api.redaction.description.RedactionPreset.Type

Class Overview

The supported presets for the redaction processor.

Summary

Enum Values
RedactionPreset.Type  CREDIT_CARD_NUMBER  Liberally catches credit card numbers with a number beginning with 1-6, and must be 13 to 19 digits long. 
RedactionPreset.Type  DATE  Matches date formats such as mm/dd/yyyy, mm/dd/yy, dd/mm/yyyy, and dd/mm/yy. 
RedactionPreset.Type  EMAIL_ADDRESS  Matches an email address with the format of [email protected] where xyz can be any alpha numeric character or a `.` For more information on the pattern please see http://emailregex.com/. 
RedactionPreset.Type  INTERNATIONAL_PHONE_NUMBER  Matches International style phone numbers with a prefix of `+` or `00`, containing between 7 - 15 digits with spaces or `-` occurring anywhere within the number. 
RedactionPreset.Type  IPV4  Matches an IPV4 address limited to number ranges of 0-255 with an optional mask. 
RedactionPreset.Type  IPV6  Matches full and compressed IPv6 addresses as defined in RFC 2373. 
RedactionPreset.Type  MAC_ADDRESS  Matches a MAC address with delimiters of either `-` or `:`  
RedactionPreset.Type  NORTH_AMERICAN_PHONE_NUMBER  Matches a NANP (https://en.wikipedia.org/wiki/North_American_Numbering_Plan) style phone number. 
RedactionPreset.Type  SOCIAL_SECURITY_NUMBER  Matches a US social security number (SSN). 
RedactionPreset.Type  TIME  Matches time formats such as 00:00:00, 00:00, 00:00 PM. 
RedactionPreset.Type  URL  Matches a URL with prefix of http|https|www with an optional subdomain. 
RedactionPreset.Type  US_ZIP_CODE  Matches a USA style Zip Code. 
RedactionPreset.Type  VIN  Matches US and ISO 3779 standard VINs. 
Public Methods
static RedactionPreset.Type valueOf(String name)
final static Type[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final RedactionPreset.Type CREDIT_CARD_NUMBER

Liberally catches credit card numbers with a number beginning with 1-6, and must be 13 to 19 digits long. Spaces and `-` are allowed anywhere in the number.

public static final RedactionPreset.Type DATE

Matches date formats such as mm/dd/yyyy, mm/dd/yy, dd/mm/yyyy, and dd/mm/yy. It will reject any days/months greater than 31 and will match if a leading zero is or is not used for a single digit day or month. The delimiter can either be `-`, `.` or `/`.

public static final RedactionPreset.Type EMAIL_ADDRESS

Matches an email address with the format of [email protected] where xyz can be any alpha numeric character or a `.` For more information on the pattern please see http://emailregex.com/.

public static final RedactionPreset.Type INTERNATIONAL_PHONE_NUMBER

Matches International style phone numbers with a prefix of `+` or `00`, containing between 7 - 15 digits with spaces or `-` occurring anywhere within the number.

public static final RedactionPreset.Type IPV4

Matches an IPV4 address limited to number ranges of 0-255 with an optional mask.

public static final RedactionPreset.Type IPV6

Matches full and compressed IPv6 addresses as defined in RFC 2373.

public static final RedactionPreset.Type MAC_ADDRESS

Matches a MAC address with delimiters of either `-` or `:`

public static final RedactionPreset.Type NORTH_AMERICAN_PHONE_NUMBER

Matches a NANP (https://en.wikipedia.org/wiki/North_American_Numbering_Plan) style phone number. In general this will match US, Canadian and various other Caribbean countries. The pattern will also match an optional international prefix of `+1`.

public static final RedactionPreset.Type SOCIAL_SECURITY_NUMBER

Matches a US social security number (SSN). The format of the number should be either XXX-XX-XXXX or XXXXXXXXX with X denoting [0-9]. We expect the number to have word boundaries on either side, or to be the start/end of the string.

public static final RedactionPreset.Type TIME

Matches time formats such as 00:00:00, 00:00, 00:00 PM. 12 and 24 hour formats are allowed. Seconds and 12 hour AM/PM denotation are both optional.

public static final RedactionPreset.Type URL

Matches a URL with prefix of http|https|www with an optional subdomain.

public static final RedactionPreset.Type US_ZIP_CODE

Matches a USA style Zip Code. The format expected is 00000 or 00000-0000, where the delimiter can either be `-` or `/`.

public static final RedactionPreset.Type VIN

Matches US and ISO 3779 standard VINs. The format expects 17 characters with the last 5 characters being numeric. `I`,`O`,`Q`,`_` characters are not allowed in upper or lower case.

Public Methods

public static RedactionPreset.Type valueOf (String name)

public static final Type[] values ()