500bb2249a54266b7e037d8bbaf36e4b7e715840
[yangtools.git] / yang / openconfig-parser-support / src / main / java / org / opendaylight / yangtools / openconfig / parser / EncryptedValueStatementSupport.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.openconfig.parser;
9
10 import org.opendaylight.yangtools.openconfig.model.api.OpenConfigStatements;
11 import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
12 import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
13
14 public final class EncryptedValueStatementSupport extends AbstractHashedValueStatementSupport {
15     private static final SubstatementValidator VALIDATOR =
16         SubstatementValidator.builder(OpenConfigStatements.OPENCONFIG_ENCRYPTED_VALUE).build();
17
18     public EncryptedValueStatementSupport(final YangParserConfiguration config) {
19         super(OpenConfigStatements.OPENCONFIG_ENCRYPTED_VALUE, config, VALIDATOR);
20     }
21 }