Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * JBoss, Home of Professional Open Source
  *
  * Copyright 2013 Red Hat, Inc. and/or its affiliates.
  *
  * Licensed 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.picketlink.internal;
import  javax.enterprise.inject.Typed;
Decorator for IdentityManager that provides secured identity management operations

Author(s):
Shane Bryzak
public class SecuredIdentityManager implements IdentityManager {
    private static final long serialVersionUID = -8197103563768366958L;
    private IdentityManager decorated;
    public SecuredIdentityManager(IdentityManager decorated) {
        this. = decorated;
    }
    @Override
    public void add(IdentityType identityTypethrows IdentityManagementException {
        .add(identityType);
    }
    @Override
    public void update(IdentityType identityTypethrows IdentityManagementException {
        .update(identityType);
    }
    @Override
    public void remove(IdentityType valuethrows IdentityManagementException {
        .remove(value);
    }
    @Override
    public <T extends IdentityType> T lookupIdentityById(Class<T> identityTypeString id) {
        return .lookupIdentityById(identityTypeid);
    }
    @Override
    public <T extends IdentityTypeIdentityQuery<T> createIdentityQuery(Class<T> identityType) {
        return .createIdentityQuery(identityType);
    }
    @Override
    public void validateCredentials(Credentials credentials) {
        .validateCredentials(credentials);
    }
    @Override
    public void updateCredential(Account accountObject credential) {
        .updateCredential(accountcredential);
    }
    @Override
    public void updateCredential(Account accountObject credentialDate effectiveDateDate expiryDate) {
        .updateCredential(accountcredentialeffectiveDateexpiryDate);
    }
    @Override
    public <T extends CredentialStorage> T retrieveCurrentCredential(Account accountClass<T> storageClass) {
        return .retrieveCurrentCredential(accountstorageClass);
    }
    @Override
    public <T extends CredentialStorageList<T> retrieveCredentials(Account accountClass<T> storageClass) {
        return .retrieveCredentials(accountstorageClass);
    }
New to GrepCode? Check out our FAQ X