XRootD
Loading...
Searching...
No Matches
XrdCryptoX509Req Class Reference

#include <XrdCryptoX509Req.hh>

+ Inheritance diagram for XrdCryptoX509Req:
+ Collaboration diagram for XrdCryptoX509Req:

Public Member Functions

 XrdCryptoX509Req (int v=-1)
 
virtual ~XrdCryptoX509Req ()
 
virtual void Dump ()
 
virtual XrdSutBucketExport ()
 
virtual XrdCryptoX509Reqdata GetExtension (const char *oid)
 
virtual bool IsValid ()
 
virtual XrdCryptoX509Reqdata Opaque ()
 
virtual XrdCryptoRSAPKI ()
 
void SetVersion (int v)
 
virtual const char * Subject ()
 
const char * SubjectHash ()
 
virtual const char * SubjectHash (int)
 
virtual bool Verify ()
 
int Version () const
 

Detailed Description

Definition at line 50 of file XrdCryptoX509Req.hh.

Constructor & Destructor Documentation

◆ XrdCryptoX509Req()

XrdCryptoX509Req::XrdCryptoX509Req ( int v = -1)
inline

Definition at line 53 of file XrdCryptoX509Req.hh.

53{ SetVersion(v); }

References SetVersion().

+ Here is the call graph for this function:

◆ ~XrdCryptoX509Req()

virtual XrdCryptoX509Req::~XrdCryptoX509Req ( )
inlinevirtual

Definition at line 54 of file XrdCryptoX509Req.hh.

54{ }

Member Function Documentation

◆ Dump()

void XrdCryptoX509Req::Dump ( )
virtual

Definition at line 41 of file XrdCryptoX509Req.cc.

42{
43 // Dump content
44 EPNAME("X509Req::Dump");
45
46 PRINT("+++++++++++++++ X509 request dump ++++++++++++++++");
47 PRINT("+");
48 PRINT("+ Subject: "<<Subject());
49 PRINT("+ Subject hash: "<<SubjectHash(0));
50 PRINT("+");
51 if (PKI()) {
52 PRINT("+ PKI: "<<PKI()->Status());
53 } else {
54 PRINT("+ PKI: missing");
55 }
56 PRINT("+");
57 PRINT("+++++++++++++++++++++++++++++++++++++++++++++++++");
58}
#define EPNAME(x)
#define PRINT(y)
const char * SubjectHash()
virtual const char * Subject()
virtual XrdCryptoRSA * PKI()

References EPNAME, PKI(), PRINT, Subject(), and SubjectHash().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Export()

XrdSutBucket * XrdCryptoX509Req::Export ( )
virtual

Reimplemented in XrdCryptosslX509Req.

Definition at line 109 of file XrdCryptoX509Req.cc.

110{
111 // EXport in form of bucket
112 ABSTRACTMETHOD("XrdCryptoX509Req::Export");
113 return (XrdSutBucket *)0;
114}
#define ABSTRACTMETHOD(x)

References ABSTRACTMETHOD.

◆ GetExtension()

XrdCryptoX509Reqdata XrdCryptoX509Req::GetExtension ( const char * oid)
virtual

Reimplemented in XrdCryptosslX509Req.

Definition at line 101 of file XrdCryptoX509Req.cc.

102{
103 // Return issuer name
104 ABSTRACTMETHOD("XrdCryptoX509Req::GetExtension");
105 return (XrdCryptoX509Reqdata)0;
106}
void * XrdCryptoX509Reqdata

References ABSTRACTMETHOD.

◆ IsValid()

bool XrdCryptoX509Req::IsValid ( )
virtual

Definition at line 61 of file XrdCryptoX509Req.cc.

62{
63 // Check validity
64 ABSTRACTMETHOD("XrdCryptoX509Req::IsValid");
65 return 0;
66}

References ABSTRACTMETHOD.

◆ Opaque()

XrdCryptoX509Reqdata XrdCryptoX509Req::Opaque ( )
virtual

Reimplemented in XrdCryptosslX509Req.

Definition at line 85 of file XrdCryptoX509Req.cc.

86{
87 // Return underlying certificate in raw format
88 ABSTRACTMETHOD("XrdCryptoX509Req::Opaque");
89 return (XrdCryptoX509Reqdata)0;
90}

References ABSTRACTMETHOD.

Referenced by XrdCryptosslFactory::X509Req().

+ Here is the caller graph for this function:

◆ PKI()

XrdCryptoRSA * XrdCryptoX509Req::PKI ( )
virtual

Reimplemented in XrdCryptosslX509Req.

Definition at line 93 of file XrdCryptoX509Req.cc.

94{
95 // Return PKI key of the certificate
96 ABSTRACTMETHOD("XrdCryptoX509Req::PKI");
97 return (XrdCryptoRSA *)0;
98}

References ABSTRACTMETHOD.

Referenced by Dump().

+ Here is the caller graph for this function:

◆ SetVersion()

void XrdCryptoX509Req::SetVersion ( int v)
inline

Definition at line 84 of file XrdCryptoX509Req.hh.

84{ version = v; }

Referenced by XrdCryptoX509Req().

+ Here is the caller graph for this function:

◆ Subject()

const char * XrdCryptoX509Req::Subject ( )
virtual

Reimplemented in XrdCryptosslX509Req.

Definition at line 69 of file XrdCryptoX509Req.cc.

70{
71 // Return subject name
72 ABSTRACTMETHOD("XrdCryptoX509Req::Subject");
73 return (const char *)0;
74}

References ABSTRACTMETHOD.

Referenced by Dump().

+ Here is the caller graph for this function:

◆ SubjectHash() [1/2]

const char * XrdCryptoX509Req::SubjectHash ( )
inline

Definition at line 74 of file XrdCryptoX509Req.hh.

74{ return SubjectHash(0); } // hash

References SubjectHash().

Referenced by Dump(), and SubjectHash().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SubjectHash() [2/2]

const char * XrdCryptoX509Req::SubjectHash ( int )
virtual

Reimplemented in XrdCryptosslX509Req.

Definition at line 77 of file XrdCryptoX509Req.cc.

78{
79 // Return subject name
80 ABSTRACTMETHOD("XrdCryptoX509Req::SubjectHash");
81 return (const char *)0;
82}

References ABSTRACTMETHOD.

◆ Verify()

bool XrdCryptoX509Req::Verify ( )
virtual

Reimplemented in XrdCryptosslX509Req.

Definition at line 117 of file XrdCryptoX509Req.cc.

118{
119 // Verify certificate signature with pub key of ref cert
120 ABSTRACTMETHOD("XrdCryptoX509Req::Verify");
121 return 0;
122}

References ABSTRACTMETHOD.

◆ Version()

int XrdCryptoX509Req::Version ( ) const
inline

Definition at line 83 of file XrdCryptoX509Req.hh.

83{ return version; }

The documentation for this class was generated from the following files: