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