View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.syncope.common.lib.types;
20  
21  public enum X509PrincipalType {
22      /**
23       * Create principal by common name and EDIPI.
24       */
25      CN_EDIPI,
26      /**
27       * Create principal from the RFC822 type name (aka email address) in the subject alternative name field.
28       * The subject alternative name field contains a list of various types of names, one type is RFC822 e-mail
29       * address. This will return the first e-mail address that is found (if there are more than one).
30       */
31      RFC822_EMAIL,
32      /**
33       * Create principal by serial no.
34       * Resolve the principal by the serial number with a configurable <strong>radix</strong>, ranging from 2 to 36.
35       * If {@code radix} is {@code 16}, then the serial number could be filled with leading zeros to even the number of
36       * digits.
37       */
38      SERIAL_NO,
39      /**
40       * Create principal by serial no and DN.
41       */
42      SERIAL_NO_DN,
43      /**
44       * Create principal by subject.
45       * Resolve the principal by extracting one or more attribute values from the
46       * certificate subject DN and combining them with intervening delimiters.
47       */
48      SUBJECT,
49      /**
50       * Create principal by subject alternative name.
51       * Resolve the principal by the subject alternative name extension. (type: otherName)
52       */
53      SUBJECT_ALT_NAME,
54      /**
55       * Create principal by subject DN.
56       */
57      SUBJECT_DN;
58  
59  }