blob: 23e373372489872cef11686aba2ad2add45e5bf2 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.apache.directory.scim.spec.resources;
import java.io.Serializable;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.apache.directory.scim.spec.annotation.ScimAttribute;
import lombok.Data;
/**
* Scim core schema, <a href="https://tools.ietf.org/html/rfc7643#section-4.1.2>section 4.1.2</a>
*
*/
@XmlType
@XmlAccessorType(XmlAccessType.NONE)
@Data
public class X509Certificate implements Serializable, TypedAttribute {
private static final long serialVersionUID = 374273508404129850L;
@XmlElement(nillable=true)
@ScimAttribute(description="A label indicating the attribute's function.")
String type;
@XmlElement
@ScimAttribute(description="The value of a X509 certificate.")
String value;
@XmlElement
@ScimAttribute(description="A human readable name, primarily used for display purposes. READ-ONLY.")
String display;
@XmlElement
@ScimAttribute(description="A Boolean value indicating the 'primary' or preferred attribute value for this attribute, e.g. the preferred mailing address or primary e-mail address. The primary attribute value 'true' MUST appear no more than once.")
Boolean primary = false;
}