1 // Copyright 2011 Google Inc. All rights reserved.
2 package com
.google
.appengine
.api
.appidentity
;
4 import java
.io
.Serializable
;
7 * {@code PublicCertificate} contains an x509 public certificate in
8 * PEM format and a string which is used to identify this certificate.
10 * @see <a href="http://tools.ietf.org/html/rfc5280">RFC 5280</a> for
11 * the specification of x509 certificates.
13 public final class PublicCertificate
implements Serializable
{
14 private final String certficateName
;
15 private final String x509CertificateInPemFormat
;
18 * @param certficiateName name of the certificate.
19 * @param x509CertificateInPemFormat x509 certificate in pem format.
21 public PublicCertificate(String certficiateName
, String x509CertificateInPemFormat
) {
22 this.certficateName
= certficiateName
;
23 this.x509CertificateInPemFormat
= x509CertificateInPemFormat
;
26 public String
getCertificateName() {
27 return certficateName
;
30 public String
getX509CertificateInPemFormat() {
31 return x509CertificateInPemFormat
;