IT. Expert System.

Android Reference

NameConstraints


org.apache.harmony.security.x509

Class NameConstraints



  • public final class NameConstraints
    extends ExtensionValue
    The class encapsulates the ASN.1 DER encoding/decoding work with the following structure which is a part of X.509 certificate (as specified in RFC 3280 - Internet X.509 Public Key Infrastructure. Certificate and Certificate Revocation List (CRL) Profile. http://www.ietf.org/rfc/rfc3280.txt):
    
       NameConstraints ::= SEQUENCE {
            permittedSubtrees       [0]     GeneralSubtrees OPTIONAL,
            excludedSubtrees        [1]     GeneralSubtrees OPTIONAL }
    
       GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree
    
     
    See Also:
    GeneralSubtree, GeneralName
    • Field Detail

      • ASN1

        public static final ASN1Sequence ASN1
        X.509 NameConstraints encoder/decoder.
    • Constructor Detail

    • Method Detail

      • isAcceptable

        public boolean isAcceptable(X509Certificate cert)
        Apply the name restrictions specified by this NameConstraints instance to the subject distinguished name and subject alternative names of specified X509Certificate. Restrictions apply only if specified name form is present in the certificate. The restrictions are applied according the RFC 3280 (see 4.2.1.11 Name Constraints), excepting that restrictions are applied and to CA certificates, and to certificates which issuer and subject names the same (i.e. method does not check if it CA's certificate or not, or if the names differ or not. This check if it is needed should be done by caller before calling this method).
        Parameters:
        cert - X.509 Certificate to be checked.
        Returns:
        true if the certificate is acceptable according these NameConstraints restrictions
      • isAcceptable

        public boolean isAcceptable(List<GeneralName> names)
        Check if this list of names is acceptable according to this NameConstraints object.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 3684 / . Delta: 0.02333 с