
org.italiangrid.voms.asn1.VOMSConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of voms-api-java Show documentation
Show all versions of voms-api-java Show documentation
Java APIs to validate and request VOMS attribute certificates
/**
* Copyright (c) Istituto Nazionale di Fisica Nucleare, 2006-2014.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.italiangrid.voms.asn1;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.asn1.x509.Extension;
/**
* A set of useful constants for ASN.1 parsing of VOMS attributes.
*
* @author Andrea Ceccanti
*
*/
public interface VOMSConstants {
/**
* The VOMS attribute certificate extension OID.
*/
public final ASN1ObjectIdentifier VOMS_EXTENSION_OID = new ASN1ObjectIdentifier(
"1.3.6.1.4.1.8005.100.100.5");
/**
* The VOMS attributes OID.
*/
public final ASN1ObjectIdentifier VOMS_FQANS_OID = new ASN1ObjectIdentifier(
"1.3.6.1.4.1.8005.100.100.4");
/**
* The VOMS Certs extension OID.
*/
public final ASN1ObjectIdentifier VOMS_CERTS_OID = new ASN1ObjectIdentifier(
"1.3.6.1.4.1.8005.100.100.10");
/**
* The VOMS Generic attributes extension OID.
*/
public final ASN1ObjectIdentifier VOMS_GENERIC_ATTRS_OID = new ASN1ObjectIdentifier(
"1.3.6.1.4.1.8005.100.100.11");
public final Set VOMS_HANDLED_EXTENSIONS = new HashSet(
Arrays.asList(VOMS_FQANS_OID, VOMS_CERTS_OID, VOMS_GENERIC_ATTRS_OID,
Extension.targetInformation, Extension.noRevAvail,
Extension.authorityKeyIdentifier));
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy