Class X500SubjectCanonicalization

    • Constructor Detail

      • X500SubjectCanonicalization

        public X500SubjectCanonicalization()
        Constructor.
    • Method Detail

      • setSubjectAltNameTypes

        public void setSubjectAltNameTypes​(@Nullable @NonnullElements
                                           List<Integer> types)
        Set the subjectAltName types to search for, in order of preference.
        Parameters:
        types - types to search for
      • setObjectIds

        public void setObjectIds​(@Nullable @NonnullElements
                                 List<String> ids)
        Set the OIDs to search for, in order of preference.
        Parameters:
        ids - RDN OIDs to search for
      • doPreExecute

        protected boolean doPreExecute​(@Nonnull
                                       ProfileRequestContext profileRequestContext,
                                       @Nonnull
                                       SubjectCanonicalizationContext c14nContext)
        Performs this c14n action's pre-execute step. Default implementation just returns true iff a subject is set.
        Overrides:
        doPreExecute in class AbstractSubjectCanonicalizationAction
        Parameters:
        profileRequestContext - the current IdP profile request context
        c14nContext - the current subject canonicalization context
        Returns:
        true iff execution should continue
      • findRDN

        @Nullable
        protected String findRDN​(@Nonnull
                                 org.cryptacular.x509.dn.RDNSequence sequence,
                                 @Nonnull @NotEmpty
                                 String oid)
        Find an RDN with the specified OID.
        Parameters:
        sequence - the DN components
        oid - the OID to look for
        Returns:
        the first matching RDN value, or null