001/*
002 * The contents of this file are subject to the terms of the Common Development and
003 * Distribution License (the License). You may not use this file except in compliance with the
004 * License.
005 *
006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
007 * specific language governing permission and limitations under the License.
008 *
009 * When distributing Covered Software, include this CDDL Header Notice in each file and include
010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
011 * Header, with the fields enclosed by brackets [] replaced by your own identifying
012 * information: "Portions Copyright [year] [name of copyright owner]".
013 *
014 * Copyright 2006-2008 Sun Microsystems, Inc.
015 * Portions Copyright 2012-2016 ForgeRock AS.
016 * Portions Copyright 2013-2014 Manuel Gaupp
017 */
018package org.opends.server.schema;
019
020import static org.opends.server.schema.SchemaConstants.*;
021
022import org.forgerock.opendj.ldap.schema.Schema;
023import org.forgerock.opendj.ldap.schema.Syntax;
024import org.forgerock.opendj.server.config.server.AttributeSyntaxCfg;
025import org.opends.server.api.AttributeSyntax;
026
027
028/**
029 * This class defines the Certificate Exact Assertion attribute syntax,
030 * which contains components for matching X.509 certificates.
031 */
032public class CertificateExactAssertionSyntax
033       extends AttributeSyntax<AttributeSyntaxCfg>
034{
035
036  /**
037   * Creates a new instance of this syntax.  Note that the only thing that
038   * should be done here is to invoke the default constructor for the
039   * superclass.  All initialization should be performed in the
040   * <CODE>initializeSyntax</CODE> method.
041   */
042  public CertificateExactAssertionSyntax()
043  {
044    super();
045  }
046
047  /** {@inheritDoc} */
048  @Override
049  public Syntax getSDKSyntax(Schema schema)
050  {
051    return schema.getSyntax(SchemaConstants.SYNTAX_CERTIFICATE_EXACT_ASSERTION_OID);
052  }
053
054  /** {@inheritDoc} */
055  @Override
056  public String getName()
057  {
058    return SYNTAX_CERTIFICATE_EXACT_ASSERTION_NAME;
059  }
060
061  /** {@inheritDoc} */
062  @Override
063  public String getOID()
064  {
065    return SYNTAX_CERTIFICATE_EXACT_ASSERTION_OID;
066  }
067
068  /** {@inheritDoc} */
069  @Override
070  public String getDescription()
071  {
072    return SYNTAX_CERTIFICATE_EXACT_ASSERTION_DESCRIPTION;
073  }
074}
075