1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 * 19 */ 20 package org.apache.directory.server.kerberos.shared.store; 21 22 23 import javax.security.auth.kerberos.KerberosPrincipal; 24 25 import org.apache.directory.server.core.DirectoryService; 26 import org.apache.directory.shared.ldap.NotImplementedException; 27 28 29 /** 30 * A PrincipalStore backing entries in a DirectoryService. 31 * 32 * TODO implement it!! 33 * 34 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 35 * @version $Rev$, $Date$ 36 */ 37 public class DirectoryPrincipalStore implements PrincipalStore 38 { 39 /** The directory service backing store for this PrincipalStore. */ 40 private DirectoryService directoryService; 41 42 43 /** 44 * Creates a new instance of DirectoryPrincipalStore. 45 * 46 * @param directoryService backing store for this PrincipalStore 47 */ 48 public DirectoryPrincipalStore( DirectoryService directoryService ) 49 { 50 this.directoryService = directoryService; 51 } 52 53 54 /* (non-Javadoc) 55 * @see org.apache.directory.server.kerberos.shared.store.PrincipalStore#addPrincipal(org.apache.directory.server.kerberos.shared.store.PrincipalStoreEntry) 56 */ 57 public String addPrincipal( PrincipalStoreEntry entry ) throws Exception 58 { 59 throw new NotImplementedException(); 60 } 61 62 63 /* (non-Javadoc) 64 * @see org.apache.directory.server.kerberos.shared.store.PrincipalStore#changePassword(javax.security.auth.kerberos.KerberosPrincipal, java.lang.String) 65 */ 66 public String changePassword( KerberosPrincipal principal, String newPassword ) throws Exception 67 { 68 throw new NotImplementedException(); 69 } 70 71 72 /* (non-Javadoc) 73 * @see org.apache.directory.server.kerberos.shared.store.PrincipalStore#deletePrincipal(javax.security.auth.kerberos.KerberosPrincipal) 74 */ 75 public String deletePrincipal( KerberosPrincipal principal ) throws Exception 76 { 77 throw new NotImplementedException(); 78 } 79 80 81 /* (non-Javadoc) 82 * @see org.apache.directory.server.kerberos.shared.store.PrincipalStore#getAllPrincipals(java.lang.String) 83 */ 84 public PrincipalStoreEntry[] getAllPrincipals( String realm ) throws Exception 85 { 86 throw new NotImplementedException(); 87 } 88 89 90 /* (non-Javadoc) 91 * @see org.apache.directory.server.kerberos.shared.store.PrincipalStore#getPrincipal(javax.security.auth.kerberos.KerberosPrincipal) 92 */ 93 public PrincipalStoreEntry getPrincipal( KerberosPrincipal principal ) throws Exception 94 { 95 throw new NotImplementedException(); 96 } 97 }