class ZTSImpl implements KeyStore, ZTSHandler {

    String logPrincipalAndGetDomain(ResourceContext ctx) {
        
        // we are going to log our principal and validate that it
        // contains expected data
        
        final Principal ctxPrincipal = ((RsrcCtxWrapper) ctx).principal();
        ((RsrcCtxWrapper) ctx).logPrincipal(ctxPrincipal);
        if (ctxPrincipal != null && ctxPrincipal.getFullName() != null) {
            final String ctxPrincipalDomain = ctxPrincipal.getDomain();
            validate(ctxPrincipal.getFullName(), TYPE_SERVICE_NAME, "logPrincipal", ctxPrincipalDomain);
            return ctxPrincipalDomain;
        }
        return null;
    }

    public  ZTSImpl();
    public  ZTSImpl(CloudStore implCloudStore, DataStore implDataStore);

}