Interface SwitchCertificate
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
SwitchCertificate
,SwitchCertificate
@Generated("mdsal-binding-generator")
public interface SwitchCertificate
extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module system-notifications
grouping switch-certificate { container subject { uses x500-principal; } container issuer { uses x500-principal; } leaf valid-from { type yang:date-and-time; } leaf valid-to { type yang:date-and-time; } leaf serial-number { type string { pattern 0|(-?[1-9][0-9]*); } } leaf-list subject-alternate-names { type string; ordered-by user; } }
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn issuer, ornull
if it is not present.Return serialNumber, ornull
if it is not present.Return subject, ornull
if it is not present.Return subjectAlternateNames, ornull
if it is not present.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime
Return validFrom, ornull
if it is not present.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime
Return validTo, ornull
if it is not present.Class<? extends SwitchCertificate>
@NonNull Issuer
Return issuer, or an empty instance if it is not present.@NonNull Subject
Return subject, or an empty instance if it is not present.default @NonNull String
Return serialNumber, guaranteed to be non-null.Return subjectAlternateNames, guaranteed to be non-null.default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime
Return validFrom, guaranteed to be non-null.default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime
Return validTo, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends SwitchCertificate> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getSubject
Subject getSubject()Return subject, ornull
if it is not present.- Returns:
Subject
subject, ornull
if it is not present.
-
nonnullSubject
@NonNull Subject nonnullSubject()Return subject, or an empty instance if it is not present.- Returns:
Subject
subject, or an empty instance if it is not present.
-
getIssuer
Issuer getIssuer()Return issuer, ornull
if it is not present.- Returns:
Issuer
issuer, ornull
if it is not present.
-
nonnullIssuer
@NonNull Issuer nonnullIssuer()Return issuer, or an empty instance if it is not present.- Returns:
Issuer
issuer, or an empty instance if it is not present.
-
getValidFrom
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime getValidFrom()Return validFrom, ornull
if it is not present.- Returns:
DateAndTime
validFrom, ornull
if it is not present.
-
requireValidFrom
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime requireValidFrom()Return validFrom, guaranteed to be non-null.- Returns:
DateAndTime
validFrom, guaranteed to be non-null.- Throws:
NoSuchElementException
- if validFrom is not present
-
getValidTo
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime getValidTo()Return validTo, ornull
if it is not present.- Returns:
DateAndTime
validTo, ornull
if it is not present.
-
requireValidTo
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime requireValidTo()Return validTo, guaranteed to be non-null.- Returns:
DateAndTime
validTo, guaranteed to be non-null.- Throws:
NoSuchElementException
- if validTo is not present
-
getSerialNumber
String getSerialNumber()Return serialNumber, ornull
if it is not present.- Returns:
String
serialNumber, ornull
if it is not present.
-
requireSerialNumber
Return serialNumber, guaranteed to be non-null.- Returns:
String
serialNumber, guaranteed to be non-null.- Throws:
NoSuchElementException
- if serialNumber is not present
-
getSubjectAlternateNames
Return subjectAlternateNames, ornull
if it is not present.- Returns:
List<String>
subjectAlternateNames, ornull
if it is not present.
-
requireSubjectAlternateNames
Return subjectAlternateNames, guaranteed to be non-null.- Returns:
List<String>
subjectAlternateNames, guaranteed to be non-null.- Throws:
NoSuchElementException
- if subjectAlternateNames is not present
-