Commit cfc5e15b891674836c6e1baa41619968ee0ca3e2
1 parent
62e45da7
Exists in
master
IN PROGRESS - issue FWK-123: Revisar e atualizar documentação do
Framework 2.4.0 https://demoiselle.atlassian.net/browse/FWK-123
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
documentation/reference/pt-BR/security.xml
... | ... | @@ -508,13 +508,13 @@ class GerenciadorBookmark { |
508 | 508 | <programlisting role="JAVA"><![CDATA[public class MeuAuthenticator implements Authenticator { |
509 | 509 | |
510 | 510 | @Override |
511 | - public boolean authenticate() { | |
511 | + public boolean authenticate() throws Exception { | |
512 | 512 | // Escreva aqui seu codigo de autenticacao e retorne true caso o processo seja um sucesso |
513 | 513 | return true; |
514 | 514 | } |
515 | 515 | |
516 | 516 | @Override |
517 | - public Principal getUser() { | |
517 | + public User getUser(){ | |
518 | 518 | // Obtenha dados sobre o usuario autenticado e retorne na forma da interface javax.security.Principal |
519 | 519 | return new Principal(){ |
520 | 520 | public String getName(){ |
... | ... | @@ -524,7 +524,7 @@ class GerenciadorBookmark { |
524 | 524 | } |
525 | 525 | |
526 | 526 | @Override |
527 | - public void unAuthenticate() { | |
527 | + public void unauthenticate() throws Exception { | |
528 | 528 | // Remova qualquer informacao de autenticacao do usuario, apas o retorno deste metodo o usuario |
529 | 529 | // deve ser considerado nao autenticado. |
530 | 530 | } |
... | ... | @@ -532,13 +532,13 @@ class GerenciadorBookmark { |
532 | 532 | <programlisting role="JAVA"><![CDATA[public class MeuAuthorizer implements Authorizer { |
533 | 533 | |
534 | 534 | @Override |
535 | - public boolean hasRole(String role) { | |
535 | + public boolean hasRole(String role) throws Exception { | |
536 | 536 | // Verifique se o usuario autenticado tem o papel informado, retorne true em caso positivo |
537 | 537 | return false; |
538 | 538 | } |
539 | 539 | |
540 | 540 | @Override |
541 | - public boolean hasPermission(String resource, String operation) { | |
541 | + public boolean hasPermission(String resource, String operation) throws Exception { | |
542 | 542 | // Escreva aqui seu codigo de verificação de permissao |
543 | 543 | return false; |
544 | 544 | } | ... | ... |