001/** 002 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 003 * 004 * Copyright (c) 2008 Sun Microsystems Inc. All Rights Reserved 005 * 006 * The contents of this file are subject to the terms 007 * of the Common Development and Distribution License 008 * (the License). You may not use this file except in 009 * compliance with the License. 010 * 011 * You can obtain a copy of the License at 012 * https://opensso.dev.java.net/public/CDDLv1.0.html or 013 * opensso/legal/CDDLv1.0.txt 014 * See the License for the specific language governing 015 * permission and limitations under the License. 016 * 017 * When distributing Covered Code, include this CDDL 018 * Header Notice in each file and include the License file 019 * at opensso/legal/CDDLv1.0.txt. 020 * If applicable, add the following below the CDDL Header, 021 * with the fields enclosed by brackets [] replaced by 022 * your own identifying information: 023 * "Portions Copyrighted [year] [name of copyright owner]" 024 * 025 * $Id: KerberosTokenSpec.java,v 1.3 2008/08/27 19:05:52 mrudul_uchil Exp $ 026 * 027 */ 028package com.sun.identity.wss.security; 029 030import java.util.Map; 031 032 033/** 034 * This class represents Kerberos Security Token Specification. 035 * It implements <code>SecurityTokenSpec</code> interface. 036 * 037 * @supported.all.api 038 */ 039public class KerberosTokenSpec implements SecurityTokenSpec { 040 041 private String encodedString = null; 042 private String servicePrincipal = null; 043 private String kdcServer = null; 044 private String kdcDomain = null; 045 private String ticketCacheDir = null; 046 private String keytab = null; 047 048 /** Creates a new instance of KerberosToken */ 049 public KerberosTokenSpec() { 050 051 } 052 053 public String getValueType() { 054 return WSSConstants.KERBEROS_VALUE_TYPE; 055 } 056 057 public String getEncodingType() { 058 return BinarySecurityToken.BASE64BINARY; 059 } 060 061 public String getServicePrincipal() { 062 return servicePrincipal; 063 } 064 065 public void setServicePrincipal(String principal) { 066 this.servicePrincipal = principal; 067 } 068 069 public String getKDCServer() { 070 return kdcServer; 071 } 072 073 public void setKDCServer(String kdcServer) { 074 this.kdcServer = kdcServer; 075 } 076 077 public String getKDCDomain() { 078 return kdcDomain; 079 } 080 081 public void setKDCDomain(String kdcDomain) { 082 this.kdcDomain = kdcDomain; 083 } 084 085 public String getKeytabFile() { 086 return keytab; 087 } 088 089 public void setKeytabFile(String file) { 090 this.keytab = file; 091 } 092 093 public String getTicketCacheDir() { 094 return ticketCacheDir; 095 } 096 097 public void setTicketCacheDir(String cacheDir) { 098 this.ticketCacheDir = cacheDir; 099 } 100 101}
Copyright © 2010-2017, ForgeRock All Rights Reserved.