/** * * 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.airavata.credential.store.credential.impl.certificate; import org.apache.airavata.credential.store.credential.CommunityUser; import org.apache.airavata.credential.store.credential.Credential; import java.security.PrivateKey; import java.security.cert.X509Certificate; /** * Represents the certificate credentials. */ public class CertificateCredential extends Credential { static final long serialVersionUID = 6603675553790734432L; /** * The community user associated with this credentials. */ private CommunityUser communityUser; private String notAfter; private X509Certificate[] certificates; private PrivateKey privateKey; private long lifeTime; private String notBefore; public CertificateCredential() { } public String getNotBefore() { return notBefore; } public void setNotBefore(String notBefore) { this.notBefore = notBefore; } public String getNotAfter() { return notAfter; } public void setNotAfter(String notAfter) { this.notAfter = notAfter; } public PrivateKey getPrivateKey() { return privateKey; } public void setPrivateKey(PrivateKey privateKey) { this.privateKey = privateKey; } public X509Certificate[] getCertificates() { return certificates; } public void setCertificates(X509Certificate[] certificate) { this.certificates = certificate; } public long getLifeTime() { return lifeTime; } public void setLifeTime(long lifeTime) { this.lifeTime = lifeTime; } public CommunityUser getCommunityUser() { return communityUser; } public void setCommunityUser(CommunityUser communityUser) { this.communityUser = communityUser; } }