tkr38: #i112307# Support for x509 v3 Subject Alternative Name extension added
This commit is contained in:
parent
215e06e795
commit
40872eccec
4 changed files with 222 additions and 1 deletions
59
offapi/com/sun/star/security/CertAltNameEntry.idl
Normal file
59
offapi/com/sun/star/security/CertAltNameEntry.idl
Normal file
|
@ -0,0 +1,59 @@
|
|||
/*************************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
|
||||
#ifndef __com_sun_star_security_CertAltNameEntry_idl__
|
||||
#define __com_sun_star_security_CertAltNameEntry_idl__
|
||||
|
||||
#include <com/sun/star/security/ExtAltNameType.idl>
|
||||
|
||||
//=============================================================================
|
||||
|
||||
module com { module sun { module star { module security {
|
||||
|
||||
//=============================================================================
|
||||
/**
|
||||
* struct contains a single entry within a Subject Alternative Name Extension of a
|
||||
* X509 certificate.
|
||||
*/
|
||||
struct CertAltNameEntry
|
||||
{
|
||||
/**
|
||||
* defines the type of the value . With this information you can determine how to interprete the Any value.
|
||||
* @see com::sun::star::security::ExtAltNameType
|
||||
*/
|
||||
com::sun::star::security::ExtAltNameType Type;
|
||||
|
||||
/**
|
||||
* stores the value of entry.
|
||||
*/
|
||||
any Value;
|
||||
};
|
||||
|
||||
|
||||
}; }; }; };
|
||||
#endif
|
99
offapi/com/sun/star/security/ExtAltNameType.idl
Normal file
99
offapi/com/sun/star/security/ExtAltNameType.idl
Normal file
|
@ -0,0 +1,99 @@
|
|||
/*************************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
/** -- idl definition -- **/
|
||||
|
||||
#ifndef __com_sun_star_security_ExtAltNameType_idl_
|
||||
#define __com_sun_star_security_ExtAltNameType_idl_
|
||||
|
||||
#include <com/sun/star/uno/XInterface.idl>
|
||||
|
||||
module com { module sun { module star { module security {
|
||||
|
||||
/**
|
||||
* Constant definiton of a single entry from Subject Alternative Name extension.
|
||||
*
|
||||
*/
|
||||
enum ExtAltNameType
|
||||
{
|
||||
/**
|
||||
* Cutomize name/value pair
|
||||
* The value of @see com::sun::star::security::CertAltNameEntry contains a NamedValue
|
||||
*/
|
||||
OTHER_NAME,
|
||||
|
||||
/**
|
||||
* The entry contains rfc822 name.
|
||||
* The value of @see com::sun::star::security::CertAltNameEntry contains a OUString
|
||||
*/
|
||||
RFC822_NAME,
|
||||
|
||||
/**
|
||||
* The entry contains a dns name.
|
||||
* The value of @see com::sun::star::security::CertAltNameEntry contains a OUString
|
||||
*/
|
||||
DNS_NAME,
|
||||
|
||||
/**
|
||||
* The entry contains a directory name.
|
||||
* The value of @see com::sun::star::security::CertAltNameEntry contains a Sequence of sal_Int8
|
||||
*/
|
||||
DIRECTORY_NAME,
|
||||
|
||||
/**
|
||||
* The entry contains an url.
|
||||
* The value of @see com::sun::star::security::CertAltNameEntry contains a OUString
|
||||
*/
|
||||
URL,
|
||||
|
||||
/**
|
||||
* The entry contains a ip address.
|
||||
* The value of @see com::sun::star::security::CertAltNameEntry contains a Sequence of sal_Int8
|
||||
*/
|
||||
IP_ADDRESS,
|
||||
|
||||
/**
|
||||
* The entry contains a registered id.
|
||||
* The value of @see com::sun::star::security::CertAltNameEntry contains a OUString
|
||||
*/
|
||||
REGISTERED_ID,
|
||||
|
||||
/**
|
||||
* Currently unsupported.
|
||||
*/
|
||||
EDI_PARTY_NAME,
|
||||
|
||||
/**
|
||||
* Currently unsupported.
|
||||
*/
|
||||
X400_ADDRESS
|
||||
};
|
||||
|
||||
} ; } ; } ; } ;
|
||||
|
||||
#endif
|
||||
|
57
offapi/com/sun/star/security/XSanExtension.idl
Normal file
57
offapi/com/sun/star/security/XSanExtension.idl
Normal file
|
@ -0,0 +1,57 @@
|
|||
/*************************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
//i20156 - new file for xmlsecurity module
|
||||
|
||||
/** -- idl definition -- **/
|
||||
|
||||
#ifndef __com_sun_star_security_XSanExtension_idl_
|
||||
#define __com_sun_star_security_XSanExtension_idl_
|
||||
|
||||
#include <com/sun/star/uno/XInterface.idl>
|
||||
#include <com/sun/star/security/XCertificateExtension.idl>
|
||||
#include <com/sun/star/security/CertAltNameEntry.idl>
|
||||
|
||||
module com { module sun { module star { module security {
|
||||
|
||||
/**
|
||||
* Interface of a X509 Subject Alternative Name Certificate Extension
|
||||
*
|
||||
* <p>This interface represents a x509 certificate extension.</p>
|
||||
*/
|
||||
interface XSanExtension : com::sun::star::security::XCertificateExtension
|
||||
{
|
||||
/**
|
||||
* Contains the alternative names of a certificate
|
||||
*/
|
||||
[attribute, readonly] sequence< com::sun::star::security::CertAltNameEntry > AlternativeNames;
|
||||
};
|
||||
|
||||
} ; } ; } ; } ;
|
||||
|
||||
#endif
|
||||
|
|
@ -59,7 +59,13 @@ IDLFILES=\
|
|||
XSerialNumberAdapter.idl \
|
||||
SerialNumberAdapter.idl \
|
||||
CertificateContainer.idl \
|
||||
CertificateContainerStatus.idl
|
||||
CertificateContainerStatus.idl \
|
||||
ExtAltNameType.idl \
|
||||
XSanExtension.idl \
|
||||
CertAltNameEntry.idl
|
||||
|
||||
|
||||
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue